예제 #1
0
 public void ActiveState(string name)
 {
     for(int i = 0; i < maxStates; i++)
     {
         if (names[i] == name)
             activeState = states[i];
     }
 }
예제 #2
0
 public GameStateManager(Tortoise2d game, int max)
 {
     maxStates = max;
     states = new GameState[max];
     names = new string[max];
     dummyState = new GameState(game, this);
     this.game = game;
 }
예제 #3
0
 public void AddState(string name, GameState state)
 {
     names[count] = name;
     states[count] = state;
     count++;
 }