Beispiel #1
0
        public City BuildCity(Unit unit)
        {
            if (unit != null) {
                City city = new City();

                city.Owner = this;
                city.MapTile = unit.MapTile;
                city.MapTile.City = city;
                city.Init();

                this.CityList.Add(city);

                return city;
            }

            return null;
        }
Beispiel #2
0
        public virtual Unit AddUnit(UnitData UnitData, MapTile MapTile)
        {
            foreach (var Item in UnitList) {
                Item.Active = false;
            }

            Unit Unit = new Unit(UnitData, MapTile);
            Unit.Init();
            Unit.ResetMoves();
            Unit.Owner = this;
            Unit.Active = true;

            MapTile.AddUnit(Unit);

            UnitList.Add(Unit);

            return Unit;
        }
Beispiel #3
0
 public void AddUnit(Unit Unit)
 {
 }
Beispiel #4
0
 public static void UpdateAI(Unit unit)
 {
     if (unit.UnitData.HasStrategy(EUnitData_AIStrategies.EUnitData_AIStrategy_Settle)) {
         AISettler.AISettlerUpdate(unit);
     }
 }