You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
809 B
43 lines
809 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace rabi_splitter_WPF
|
|
{
|
|
enum InGameActivity
|
|
{
|
|
STARTING,
|
|
WALKING,
|
|
BOSS_BATTLE,
|
|
}
|
|
|
|
class InGameState
|
|
{
|
|
public int nRestarts;
|
|
public int nDeaths;
|
|
|
|
public int nDeathsAlt;
|
|
|
|
public InGameActivity currentActivity;
|
|
|
|
public int lastNonZeroPlayTime = -1;
|
|
|
|
public InGameState()
|
|
{
|
|
currentActivity = InGameActivity.STARTING;
|
|
}
|
|
|
|
public bool CurrentActivityIs(InGameActivity gameActivity)
|
|
{
|
|
return currentActivity == gameActivity;
|
|
}
|
|
|
|
public bool IsGameStarted()
|
|
{
|
|
return !CurrentActivityIs(InGameActivity.STARTING);
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|