public void ChangeState(BattleState battleState)
 {
     states.Pop();
     states.Push(battleState);
     stateChanged = true;
 }
 public void PushState(BattleState battleState)
 {
     CurrentBattleState.Pause();
     Logger.Log(CurrentBattleState.GetType().Name + " battle state paused");
     states.Push(battleState);
     stateChanged = true;
 }
 public virtual void Resume(BattleState previousBattleState)
 {
     if (BattleStateRenderer != null)
         BattleStateRenderer.Resume();
 }
 public void PushState(BattleState state)
 {
     if (Battle.CurrentBattleState == this)
         Battle.PushState(state);
 }
 public void ChangeState(BattleState state)
 {
     if (Battle.CurrentBattleState == this)
         Battle.ChangeState(state);
 }
 public BattleStateRenderer(BattleState battleState)
 {
     if (battleState == null)
         throw new Exception("BattleState cannot be null");
     this.battleState = battleState;
 }
Esempio n. 7
0
 public void ChangeState(BattleState battleState)
 {
     states.Pop();
     states.Push(battleState);
     stateChanged = true;
 }