/// <summary> /// Initializes a new instance of the <see cref="T:System.Object"/> class. /// </summary> public ScreenBattle(IScreenLoader screenLoader, IWindowQueuer windowQueuer, IPhase startPhase, BattleData battleData) : base(screenLoader) { this.windowQueuer = windowQueuer; this.battleData = battleData; currentPhase = startPhase; windowBattle = new WindowBattle(new Vector2(0, 113), 240, 45); }
public void LoadContent(IContentLoader contentLoader, IWindowQueuer windowQueuer, BattleData battleData) { trainerSprites = new List <TrainerSprite> { new TrainerOpponentSprite(battleData.Opponent.TextureName), new TrainerPlayerSprite("Trainers/trainer_back") }; trainerSprites.ForEach(t => t.LoadContent(contentLoader)); }
public virtual void LoadContent(IContentLoader contentLoader, IWindowQueuer windowQueuer, BattleData battleData) { foreach (var trainerSprite in TrainerSprites.Where(t => t is TTrainerSprite)) { trainerSprite.StartMoveOut(); } foreach (var trainerPokemonStatuse in TrainerPokemonStatuses.Where(t => t is TTrainerStatusSprite)) { trainerPokemonStatuse.StartMoveOut(); } }
public void LoadContent(IContentLoader contentLoader, IWindowQueuer windowQueuer, BattleData battleData) { trainerPokemonStatuses = new List <TrainerPokemonStatus> { new TrainerOpponentPokemonStatus(new List <PokemonStates> { PokemonStates.Normal, PokemonStates.StatusEffect }), new TrainerPlayerPokemonStatus(new List <PokemonStates> { PokemonStates.Normal, PokemonStates.Dead, PokemonStates.StatusEffect }) }; trainerPokemonStatuses.ForEach(t => t.LoadContent(contentLoader)); }
public void LoadContent(IContentLoader contentLoader, IWindowQueuer windowQueuer, BattleData battleData) { playerPokemonStateBar = new PlayerPokemonStateBar(new Pokemon().PokemonBattleData); //temporary playerPokemonStateBar.LoadContent(contentLoader); }
public void LoadContent(IContentLoader contentLoader, IWindowQueuer windowQueuer, BattleData battleData) { pokeBall.LoadContent(contentLoader); pokemonBattleSpriteTest.LoadContent(contentLoader); }
public void LoadContent(IContentLoader contentLoader, IWindowQueuer windowQueuer, BattleData battleData) { this.windowQueuer = windowQueuer; windowQueuer.QueueWindow(new WindowBattleMessage($"{battleData.Opponent.Name} would like to battle! {Environment.NewLine} {battleData.Opponent.Name} sent out Weedle!", new InputKeyboard())); }
public override void LoadContent(IContentLoader contentLoader, IWindowQueuer windowQueuer, BattleData battleData) { base.LoadContent(contentLoader, windowQueuer, battleData); pokeBall.LoadContent(contentLoader); pokemonBattleSpriteTest.LoadContent(contentLoader); }