Пример #1
0
 public StateChange revealIfSetToo(int pauseTime)
 {
     storedStateChangeObject.setToDefualts();
     if (setToReveal && !isTypeRevealed)
     {
         setToReveal = false;
         return(revealType(pauseTime));
     }
     setToReveal = false;
     return(storedStateChangeObject);
 }
Пример #2
0
 /**
  * Will call updateTurn() on all of the Enemies in the Set
  */
 public StateChange updateTurn()
 {
     storedStateChangeObject.setToDefualts();
     if (enemySetPrime != null)
     {
         for (int loopHeight = 0; loopHeight < enemySetPrime.Length; loopHeight++)
         {
             if (enemySetPrime[loopHeight] != null)
             {
                 for (int loopWidth = 0; loopWidth < enemySetPrime[loopHeight].Length; loopWidth++)
                 {
                     if (enemySetPrime[loopHeight][loopWidth] != null)
                     {
                         enemySetPrime[loopHeight][loopWidth].setAnimationPosition(0);
                         storedStateChangeObject.add(enemySetPrime[loopHeight][loopWidth].updateTurn());
                     }
                 }
             }
         }
     }
     return(storedStateChangeObject);
 }
Пример #3
0
 internal void resetChanges()
 {
     storedStateChangeObject.setToDefualts();
 }