예제 #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
파일: Mace.cs 프로젝트: bearwithcode/Victor
 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
파일: Bat.cs 프로젝트: bearwithcode/Victor
 public Bat(Game game, Point location)
     : base(game, location, 6)
 {
 }
예제 #6
0
파일: Bow.cs 프로젝트: bearwithcode/Victor
 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;
 }