/// <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>(); }
/// <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; }
/// <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; }
/// <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; }
/// <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; }
public ExitCommand(DespicableGame game) { this.game = game; }
public PauseCommand(DespicableGame game) { this.game = game; }