public BluePotion(Game game, Point location) : base(game, location) { used = false; base.radius = 1; base.damage = 5; }
public RedPotion(Game game, Point location) : base(game, location) { used = false; base.radius = 1; base.damage = 10; }
public Ghost(Game game, Point location) : base(game, location, 8) { // Make the ghost slower than the bat and ghoul, but not much slower as // it already stands still 2/3 of the time anyway. Speed = 5; }
// Start a new game. Takes a parameter determining whether the game is an action game or not. // If an action game, enable the enemy timer and the pause button, otherwise enable the move // and attack buttons for a turn-based game. private void newGame(bool action) { startAction.Visible = false; startTurn.Visible = false; gameStatusLabel.Visible = false; newGameButton.Visible = false; quitButton.Visible = false; game = new Game(new Rectangle(74, 55, 453 - picPlayer.Width, 191 - picPlayer.Height), action); game.NewLevel(random); UpdateCharacters(); if (game.Action) { moveGroup.Visible = false; attackGroup.Visible = false; pauseButton.Visible = true; ticks = 0; enemyTimer.Enabled = true; } else { enemyTimer.Enabled = false; pauseButton.Visible = false; moveGroup.Visible = true; attackGroup.Visible = true; } }
public Enemy(Game game, Point location, int hitPoints) : base(game, location) { HitPoints = hitPoints; }
public Bow(Game game, Point location) : base(game, location) { base.radius = 30; base.damage = 1; }
public Weapon(Game game, Point location) : base(game, location) { PickedUp = false; }
public Bat(Game game, Point location) : base(game, location, 6) { // The bat is the fastest enemy, though it doesn't do as much damage. Speed = 2; }
public Player(Game game, Point location) : base(game, location) { HitPoints = 10; }
public Mace(Game game, Point location) : base(game, location) { base.radius = 20; base.damage = 6; }
public Sword(Game game, Point location) : base(game, location) { base.radius = 10; base.damage = 3; }
public Mover(Game game, Point location) { this.game = game; this.location = location; }
public Ghoul(Game game, Point location) : base(game, location, 10) { // The ghoul is faster than the ghost, but slower than the bat. Speed = 4; }