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; }
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; }
public void AddUnit(Unit Unit) { }
public static void UpdateAI(Unit unit) { if (unit.UnitData.HasStrategy(EUnitData_AIStrategies.EUnitData_AIStrategy_Settle)) { AISettler.AISettlerUpdate(unit); } }