예제 #1
0
        public void Update(GameFightPlacementPossiblePositionsMessage msg)
        {
            if (msg == null) throw new ArgumentException("msg");

            if (Fighter.Team == null)
            {
                // it's a bit tricky ...
                Fighter.SetTeam(Fight.GetTeam((FightTeamColor)msg.teamNumber));
                Fight.AddActor(Fighter);
            }

            Fight.Update(msg);
        }
예제 #2
0
 public void Update(GameFightPlacementPossiblePositionsMessage msg)
 {
     if (msg == null) throw new ArgumentException("msg");
     Fighter.SetTeam(Fight.GetTeam((FightTeamColor) msg.teamNumber));
     Fight.Update(msg);
 }
예제 #3
0
 public void HandleGameFightPlacementPossiblePositionsMessage(Bot bot, GameFightPlacementPossiblePositionsMessage message)
 {
     bot.Character.Update(message);
 }
예제 #4
0
 public static void HandleGameFightPlacementPossiblePositionsMessage(Bot bot, GameFightPlacementPossiblePositionsMessage message)
 {
     if (!bot.Character.IsFighting())
         logger.Error("Received GameFightPlacementPossiblePositionsMessage but character is not in fight !");
     else
         bot.Character.Update(message);
 }