Ejemplo n.º 1
0
 // '' <summary>
 // '' End the current state and add in the new state.
 // '' </summary>
 // '' <param name="newState">the new state of the game</param>
 public static void SwitchState(GameState newState)
 {
     GameController.EndCurrentState();
     GameController.AddNewState(newState);
 }
Ejemplo n.º 2
0
 // '' <summary>
 // '' Listens to the game grids for any changes and redraws the screen
 // '' when the grids change
 // '' </summary>
 // '' <param name="sender">the grid that changed</param>
 // '' <param name="args">not used</param>
 private static void GridChanged(object sender, EventArgs args)
 {
     GameController.DrawScreen();
     SwinGame.RefreshScreen();
 }