public ClanController(int clanId, Tile spawnTile)
 {
     StrengthController = new ClanStrength();
     Id       = clanId;
     _isAlive = true;
     _entitiesList.Clear();
     SpawnHeadquarter(spawnTile);
 }
예제 #2
0
 private void NotifyWhenOtherClansTerritoryIsConquered(int clanIdThatLostHisTerritory)
 {
     if (clanIdThatLostHisTerritory != TerrainConfig.TERRAIN_NEUTRAL_CLAN_OWNERSHIP)
     {
         IClanStrengthChanger loser = _clansList.FirstOrDefault(x => x.Id == clanIdThatLostHisTerritory)?.StrengthController;
         loser?.LoseTerritory();
     }
 }