public static PokemonAdditionalInfo RivalAbilityNotify(OnboardPokemon pm) { PokemonAdditionalInfo info = new PokemonAdditionalInfo(); info.Id = pm.Id; info.Ability = pm.Ability; info.receiversId = new int[0]; return info; }
public static PokemonAdditionalInfo OwnerMovesNotify(OnboardPokemon pm) { PokemonAdditionalInfo info = new PokemonAdditionalInfo(); info.Id = pm.Id; info.MoveIds = new int[4]; for (int i = 0; i < 4; i++) if (pm.Moves[i] != null) info.MoveIds[i] = pm.Moves[i].Id; info.receiversId = new int[] { pm.Owner.Id }; return info; }
void InformAdditionalInfo(PokemonAdditionalInfo info) { OnSendInformation(new PmAddionalInfo(info), info.GetReceiversId()); }
/// <summary> /// 注意和Update(Turn)的顺序 /// </summary> /// <param name="info"></param> public void Update(PokemonAdditionalInfo info) { }
void IGameInformer.InformPmAdditional(PokemonAdditionalInfo pminfo) { InformPmAdditional(pminfo); }
protected abstract void InformPmAdditional(PokemonAdditionalInfo pminfo);
public PmAddionalInfo(PokemonAdditionalInfo pmInfo) { PmInfo = pmInfo; }