Esempio n. 1
0
 public Battle(Player player, Monster monster)
 {
     this.Player = player;
     this.Monster = monster;
     Monster.Reset(3);
     ActivePlayerMonster = Player.GetMonsters()[0];
     State = States.PlayerTurn;
 }
Esempio n. 2
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            Texture2D squirtle = Content.Load<Texture2D>("squirtle");
            Texture2D bulbasaur = Content.Load<Texture2D>("bulbasaur");
            Texture2D charmander = Content.Load<Texture2D>("charmander");
            Texture2D pikachu = Content.Load<Texture2D>("pikachu");

            Monster mSquirtle = new Monster(squirtle, "Squirtle");
            Monster mBulbasaur = new Monster(bulbasaur, "Bulbasaur");
            Monster mCharmander = new Monster(charmander, "Charmander");
            Monster mPikachu = new Monster(pikachu, "Pikachu");

            Monsters.Add(mSquirtle);
            Monsters.Add(mBulbasaur);
            Monsters.Add(mCharmander);
            Monsters.Add(mPikachu);

            Player = new Player(Monsters);

            WorldScreen.Initialize(this.Content);
            FightingScreen.Initialize(this.Content);
            base.Initialize();
        }