예제 #1
0
파일: Moves.cs 프로젝트: Norman1/WarLightAI
 private GameOrder Convert(BotOrderAttackTransfer o)
 {
     return(GameOrderAttackTransfer.Create(o.PlayerID, o.From.ID, o.To.ID, AttackTransferEnum.AttackTransfer, false, o.Armies, false));
 }
예제 #2
0
 public static void CommittAttackTransferMove(BotMain state, BotOrderAttackTransfer attackTransferMove)
 {
     attackTransferMove.From.OutgoingMoves.Add(attackTransferMove);
     attackTransferMove.To.IncomingMoves.Add(attackTransferMove);
     state.MapUpdater.UpdateMap(attackTransferMove, state.WorkingMap, BotTerritory.DeploymentType.Normal);
 }