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;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
        // 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;
            }
        }
Esempio n. 5
0
 public Enemy(Game game, Point location, int hitPoints)
     : base(game, location)
 {
     HitPoints = hitPoints;
 }
Esempio n. 6
0
 public Bow(Game game, Point location)
     : base(game, location)
 {
     base.radius = 30;
     base.damage = 1;
 }
Esempio n. 7
0
 public Weapon(Game game, Point location)
     : base(game, location)
 {
     PickedUp = false;
 }
Esempio n. 8
0
 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;
 }
Esempio n. 9
0
 public Player(Game game, Point location)
     : base(game, location)
 {
     HitPoints = 10;
 }
Esempio n. 10
0
 public Mace(Game game, Point location)
     : base(game, location)
 {
     base.radius = 20;
     base.damage = 6;
 }
Esempio n. 11
0
 public Sword(Game game, Point location)
     : base(game, location)
 {
     base.radius = 10;
     base.damage = 3;
 }
Esempio n. 12
0
 public Mover(Game game, Point location)
 {
     this.game = game;
     this.location = location;
 }
Esempio n. 13
0
 public Ghoul(Game game, Point location)
     : base(game, location, 10)
 {
     // The ghoul is faster than the ghost, but slower than the bat.
     Speed = 4;
 }