예제 #1
0
파일: UnitBase.cs 프로젝트: valdisz/C-evo-x
        public PlayResult DoSpyMission__Turn(SpyMission mission, Location target)
        {
            if (!target.IsValid)
            {
                return(new PlayResult(PlayError.InvalidLocation));
            }
            PlayResult result = theEmpire.Play(Protocol.sSetSpyMission + ((int)mission << 4));

            if (!result.OK)
            {
                return(result);
            }
            else
            {
                result = MoveToNeighborOf__Turn(target);
                if (!result.OK || result.UnitRemoved || result.NewUnitOrCitySpotted)
                {
                    return(result);
                }
                else
                {
                    return(Step__Turn(target));
                }
            }
        }
예제 #2
0
파일: UnitBase.cs 프로젝트: valdisz/C-evo-x
 public PlayResult DoSpyMission__Turn(SpyMission mission, ICity city)
 {
     return(DoSpyMission__Turn(mission, city.Location));
 }