Example #1
0
 public static void GoToPostBattle()
 {
     if (_state != Battle)
         throw new GameImplementationException("Cannot go to Post-Battle state except from Battle state");
     PostBattle = new PostBattleState(Battle);
     SwitchState(PostBattle);
 }
Example #2
0
 public static void GoToPostBattle()
 {
     if (_state != Battle)
     {
         throw new GameImplementationException("Cannot go to Post-Battle state except from Battle state");
     }
     PostBattle = new PostBattleState(Battle);
     SwitchState(PostBattle);
 }