44 lines
809 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace rabi_splitter_WPF
{
2017-05-04 22:08:21 +08:00
enum InGameActivity
{
STARTING,
WALKING,
BOSS_BATTLE,
}
2017-05-04 22:08:21 +08:00
class InGameState
{
public int nRestarts;
public int nDeaths;
public int nDeathsAlt;
2017-05-04 22:08:21 +08:00
public InGameActivity currentActivity;
public int lastNonZeroPlayTime = -1;
2017-05-04 22:08:21 +08:00
public InGameState()
{
2017-05-04 22:08:21 +08:00
currentActivity = InGameActivity.STARTING;
}
2017-05-04 22:08:21 +08:00
public bool CurrentActivityIs(InGameActivity gameActivity)
{
return currentActivity == gameActivity;
}
public bool IsGameStarted()
{
2017-05-04 22:08:21 +08:00
return !CurrentActivityIs(InGameActivity.STARTING);
}
}
}