Пример #1
0
 public Weapon(Game game, Point location)
     : base(game, location)
 {
     this.game = game;
     this.location = location;
     pickedUp = false;
 }
Пример #2
0
 public Ghoul(Game game, Point location)
     : base(game, location, 10)
 {
 }
Пример #3
0
 public Mace(Game game, Point location)
     : base(game, location)
 {
 }
Пример #4
0
        static void Main(string[] args)
        {
            Game Game = new Game(  );
            Game.Playing = true;
            while (Game.Playing)
            {
                Console.WriteLine("Please enter the name of your new Hero: ");
                string Name = Console.ReadLine();

                Hero Hero = new Hero();
                Hero.Name = Name;

                Console.WriteLine("Your name is: "+Hero.Name);
                Console.WriteLine("What would you like to do: \n"
                                  +"\t 1.) Go into town\n"
                                  +"\t 2.) Go into the forest\n");
                switch (Console.ReadLine())
                {
                    case "1":
                        Game.goToTown( "Belmont" );
                        break;
                    default:
                        Console.WriteLine("Thank you for playing the game");
                        Game.Playing = false;
                        break;
                }
            }
        }
Пример #5
0
 public Bat(Game game, Point location)
     : base(game, location, 6)
 {
 }
Пример #6
0
 public Bow(Game game, Point location)
     : base(game, location)
 {
 }
Пример #7
0
 public Sword(Game game, Point location)
     : base(game, location)
 {
 }
Пример #8
0
 private void Form1_Load(object sender, EventArgs e)
 {
     game = new Game(new Rectangle(110,83,680,305));
     game.NewLevel(random);
     UpdateCharacters();
 }
Пример #9
0
 public Mover(Game game, Point location)
 {
     this.game = game;
     this.location = location;
 }
Пример #10
0
 public Player(Game game, Point location)
     : base(game, location)
 {
     hitPoints = 10;
 }
Пример #11
0
 public Enemy(Game game, Point location, int hitPoints)
     : base(game, location)
 {
     this.hitPoints = hitPoints;
 }
Пример #12
0
 public Ghost(Game game, Point location)
     : base(game, location, 8)
 {
 }
Пример #13
0
 public RedPotion(Game game, Point location)
     : base(game, location)
 {
     Used = false;
 }