public Weapon(Game game, Point location) : base(game, location) { this.game = game; this.location = location; pickedUp = false; }
public Ghoul(Game game, Point location) : base(game, location, 10) { }
public Mace(Game game, Point location) : base(game, location) { }
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; } } }
public Bat(Game game, Point location) : base(game, location, 6) { }
public Bow(Game game, Point location) : base(game, location) { }
public Sword(Game game, Point location) : base(game, location) { }
private void Form1_Load(object sender, EventArgs e) { game = new Game(new Rectangle(110,83,680,305)); game.NewLevel(random); UpdateCharacters(); }
public Mover(Game game, Point location) { this.game = game; this.location = location; }
public Player(Game game, Point location) : base(game, location) { hitPoints = 10; }
public Enemy(Game game, Point location, int hitPoints) : base(game, location) { this.hitPoints = hitPoints; }
public Ghost(Game game, Point location) : base(game, location, 8) { }
public RedPotion(Game game, Point location) : base(game, location) { Used = false; }