Пример #1
0
 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;
 }
Пример #2
0
 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;
 }
Пример #3
0
Файл: Host.cs Проект: sunoru/PBO
 void InformAdditionalInfo(PokemonAdditionalInfo info)
 {
   OnSendInformation(new PmAddionalInfo(info), info.GetReceiversId());
 }
Пример #4
0
 /// <summary>
 /// 注意和Update(Turn)的顺序
 /// </summary>
 /// <param name="info"></param>
 public void Update(PokemonAdditionalInfo info)
 {
 }
Пример #5
0
Файл: User.cs Проект: sunoru/PBO
 void IGameInformer.InformPmAdditional(PokemonAdditionalInfo pminfo)
 {
   InformPmAdditional(pminfo);
 }
Пример #6
0
Файл: User.cs Проект: sunoru/PBO
 protected abstract void InformPmAdditional(PokemonAdditionalInfo pminfo);
Пример #7
0
 public PmAddionalInfo(PokemonAdditionalInfo pmInfo)
 {
     PmInfo = pmInfo;
 }