示例#1
0
 /// <summary>
 /// handles resetting all gameobjects to their default values at the beginning of each round
 /// </summary>
 /// <param name="inInputManager">The InputManager from the GameObject which called the victory</param>
 public void RestartGame(Managers.InputManager inInputManager)
 {
     Program.startup(ballsNum, inInputManager, this);
     parentForm.message = "";
     StartAll();
     gameTimer.Enabled = true;
 }
示例#2
0
 /// <summary>
 /// The KeyPlayer's constructor handles injection of necessary game elements.
 /// </summary>
 /// <param name="inInputManager">The input manager reference to determine the mouse position etc</param>
 /// <param name="inStateManager">The state manager for declaring victory conditions</param>
 /// <param name="inLandscape">The landscape reference </param>
 /// <param name="inHealth">The starting health for the KeyPlayer</param>
 public KeyPlayer(Managers.InputManager inInputManager, StateManager inStateManager, Landscape inLandscape, int inHealth)
 {
     health         = inHealth;
     startingHealth = inHealth;
     inputManager   = inInputManager;
     stateManager   = inStateManager;
     landscape      = inLandscape;
 }
示例#3
0
 /// <summary>
 /// handles resetting all gameobjects to their default values at the beginning of each round
 /// </summary>
 /// <param name="inInputManager">The InputManager from the GameObject which called the victory</param>
 public void RestartGame(Managers.InputManager inInputManager)
 {
     Program.startup(inInputManager, this);
     StartAll();
     gameTimer.Enabled = true;
 }