public void SetPP(MoveProxy move)
 {
     Add(new SetPP()
     {
         Pm = move.Owner.Id, Move = move.MoveE.Id, PP = move.PP
     });
 }
Ejemplo n.º 2
0
 internal PokemonProxy(Pokemon pokemon)
 {
     Controller         = pokemon.Controller;
     Pokemon            = pokemon;
     NullOnboardPokemon = new OnboardPokemon(pokemon, -1);
     StruggleMove       = new MoveProxy(new Move(RomData.GetMove(Ms.STRUGGLE), 1), this);
     _moves             = new List <MoveProxy>(4);
 }
Ejemplo n.º 3
0
 internal void BuildAtkContext(MoveProxy move)
 {
     if (move.MoveE.Id == Ms.STRUGGLE)
     {
         _atkContext = new AtkContext(this);
     }
     else
     {
         _atkContext = new AtkContext(move);
     }
 }
Ejemplo n.º 4
0
 public void ChangeMove(MoveTypeE from, MoveTypeE to)
 {
     for (int i = 0; i < _moves.Count; ++i)
     {
         if (_moves[i].MoveE == from)
         {
             _moves[i] = new MoveProxy(to, this);
             break;
         }
     }
 }
Ejemplo n.º 5
0
 internal bool SelectMove(MoveProxy move, Tile target, bool mega)
 {
     if (Hp > 0 && move.CanBeSelected && (!mega || CanMega))
     {
         Action         = PokemonAction.WillMove;
         SelectedMove   = move;
         SelectedTarget = target;
         SelectMega     = mega;
         return(true);
     }
     return(false);
 }
Ejemplo n.º 6
0
 public bool SelectMove(MoveProxy move, Tile target, bool mega)
 {
     return(move.Owner.CanInput && move.Owner.SelectMove(move, target, mega));
 }
Ejemplo n.º 7
0
 internal bool InputSelectMove(MoveProxy move, Tile target, bool mega, bool zmove)
 {
     return(InputController.SelectMove(move, target, mega, zmove));
 }
Ejemplo n.º 8
0
 public AtkContext(MoveProxy mp)
 {
     MoveProxy = mp;
     Attacker  = mp.Owner;
 }