Experimental stuff for now. Don't think too much about it. Branched off Rabi-Ribi Autosplitter.
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.
rabiribi-display/rabi_splitter_WPF/RabiGameState.cs

43 lines
803 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace rabi_splitter_WPF
{
enum GameActivity
{
STARTING,
WALKING,
BOSS_BATTLE,
}
class RabiGameState
{
public int nRestarts;
public int nDeaths;
public int nDeathsAlt;
public GameActivity currentActivity;
public int lastNonZeroPlayTime = -1;
public RabiGameState()
{
currentActivity = GameActivity.STARTING;
}
public bool CurrentActivityIs(GameActivity gameActivity)
{
return currentActivity == gameActivity;
}
public bool IsGameStarted()
{
return !CurrentActivityIs(GameActivity.STARTING);
}
}
}