Esempio n. 1
0
        public AttackMenu(Game game, AttackChoiceArrow attackChoiceArrow, PokemonInstance pokemonInstance)
            : base(game)
        {
            _pokemon = new PokemonWrapper(game, pokemonInstance);

            _attackChoiceArrow = attackChoiceArrow;
            Position = new Vector2(0, 110);
            Texture = game.Content.Load<Texture2D>("Resources/Battlesystem/attackMenu");
            _moveFont = game.Content.Load<SpriteFont>("Size8");
            _PPFont = game.Content.Load<SpriteFont>("Size10");
        }
Esempio n. 2
0
        public new void LoadContent()
        {
            Frame = Game.Content.Load<Texture2D>(@"BattleFrame");

            _background = new Background(Game, BackgroundType.Grass);
            DrawableComponents.Add(_background);

            DrawableComponents.Add(EnemyTrainer);
            DrawableComponents.Add(AlliedTrainer);

            ActiveAlliedPokemon.Visible = false;
            ActiveEnemyPokemon.Visible = false;
            DrawableComponents.Add(ActiveAlliedPokemon);
            DrawableComponents.Add(ActiveEnemyPokemon);

            _textPanel = new TextPanel(Game, 0, 110, false);
            DrawableComponents.Add(_textPanel);

            _allyPokemonPanel = new AllyPokemonPanel(Game) { Visible = false };
            DrawableComponents.Add(_allyPokemonPanel);

            _enemyPokemonPanel = new EnemyPokemonPanel(Game) { Visible = false };
            DrawableComponents.Add(_enemyPokemonPanel);

            _pokeballsAlly = new PokeballsAlly(Game, AlliedTrainer) { Visible = false };
            DrawableComponents.Add(_pokeballsAlly);

            _pokeballsEnemy = new PokeballsEnemy(Game, EnemyTrainer) { Visible = false };
            DrawableComponents.Add(_pokeballsEnemy);

            _attackChoiceArrow = new AttackChoiceArrow(Game) { Visible = false };
            _attackMenu = new AttackMenu(Game, _attackChoiceArrow, ActiveAlliedPokemon.PokemonInstance) { Visible = false };
            DrawableComponents.Add(_attackMenu);
            DrawableComponents.Add(_attackChoiceArrow);

            _actionChoiceArrow = new ActionChoiceArrow(Game) { Visible = false };
            _actionMenu = new ActionMenu(Game) { Visible = false };
            DrawableComponents.Add(_actionMenu);
            DrawableComponents.Add(_actionChoiceArrow);

            DrawableComponents.Add(_textPanel.BattleText);
        }