示例#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
文件: SimGame.cs 项目: sunoru/PBO
 /// <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;
 }