Exemplo n.º 1
0
        public BattleEventProcessor(IGUIService guiService, IBattleGraphicController graphicService, IEventQueue queue, IEventCreator events)
        {
            this.guiService = guiService;
            this.graphicService = graphicService;
            this.queue = queue;

            events.CriticalDamage += CriticalDamageHandler;
            events.HPChanged += HPChangedHandler;
            events.MoveEffective += MoveEffectiveHandler;
            events.MoveUsed += MoveUsedHandler;
            events.NewTurn += NewTurnHandler;
            events.PokemonChanged += PokemonChangedHandler;
            events.StatusChanged += StatusChangedHandler;
        }
Exemplo n.º 2
0
 public SetStatusEvent(IBattleGraphicController graphic, ClientIdentifier id, StatusCondition condition)
 {
     this.graphic = graphic;
     this.id = id;
     this.condition = condition;
 }
Exemplo n.º 3
0
 public SetHPEvent(IBattleGraphicController graphic, ClientIdentifier id, int hp)
 {
     this.graphic = graphic;
     this.id = id;
     this.hp = hp;
 }
Exemplo n.º 4
0
 public SetPokemonEvent(IBattleGraphicController graphic, ClientIdentifier id, PokemonWrapper pokemon)
 {
     this.graphic = graphic;
     this.id = id;
     this.pokemon = pokemon;
 }