/// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (DespicableGame game = new DespicableGame())
     {
         game.Run();
     }
 }
 public Gamepad(PlayerCharacter Gru, DespicableGame game)
 {
     gamePadDown = new DownCommand(Gru);
     gamePadUp = new UpCommand(Gru);
     gamePadRight = new RightCommand(Gru);
     gamePadLeft = new LeftCommand(Gru);
     gamePadPowerup = new PowerupCommand(Gru);
     gamePadUnleashMinions = new UnleashMinionsCommand(Gru);
     gamePadExit = new ExitCommand(game);
     gamePadPause = new PauseCommand(game);
     inputMappings = new Dictionary<Buttons, ICommand>();
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SpawnMinions"/> class.
 /// </summary>
 /// <param name="game">The game.</param>
 public SpawnMinions(DespicableGame game)
 {
     this.game = game;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PauseGame"/> class.
 /// </summary>
 /// <param name="game">The game.</param>
 public PauseGame(DespicableGame game)
 {
     this.game = game;
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BackToMenu"/> class.
 /// </summary>
 /// <param name="game">The game.</param>
 public BackToMenu(DespicableGame game)
 {
     this.game = game;
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GruShoot"/> class.
 /// </summary>
 /// <param name="game">The game.</param>
 public GruShoot(DespicableGame game)
 {
     this.game = game;
 }
Example #7
0
 public ExitCommand(DespicableGame game)
 {
     this.game = game;
 }
Example #8
0
 public PauseCommand(DespicableGame game)
 {
     this.game = game;
 }