Exemplo n.º 1
0
 public BluePotion(Game game, Point location)
     : base(game, location)
 {
     used = false;
     base.radius = 1;
     base.damage = 5;
 }
Exemplo n.º 2
0
 public RedPotion(Game game, Point location)
     : base(game, location)
 {
     used = false;
     base.radius = 1;
     base.damage = 10;
 }
Exemplo 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;
 }
Exemplo 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;
            }
        }
Exemplo n.º 5
0
 public Enemy(Game game, Point location, int hitPoints)
     : base(game, location)
 {
     HitPoints = hitPoints;
 }
Exemplo n.º 6
0
 public Bow(Game game, Point location)
     : base(game, location)
 {
     base.radius = 30;
     base.damage = 1;
 }
Exemplo n.º 7
0
 public Weapon(Game game, Point location)
     : base(game, location)
 {
     PickedUp = false;
 }
Exemplo 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;
 }
Exemplo n.º 9
0
 public Player(Game game, Point location)
     : base(game, location)
 {
     HitPoints = 10;
 }
Exemplo n.º 10
0
 public Mace(Game game, Point location)
     : base(game, location)
 {
     base.radius = 20;
     base.damage = 6;
 }
Exemplo n.º 11
0
 public Sword(Game game, Point location)
     : base(game, location)
 {
     base.radius = 10;
     base.damage = 3;
 }
Exemplo n.º 12
0
 public Mover(Game game, Point location)
 {
     this.game = game;
     this.location = location;
 }
Exemplo 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;
 }