Exemple #1
0
 public void CreateTerritories()
 {
     if (TerritoriesFactory != null)
     {
         for (int i = 0; i < TerritoriesFactory.TerritoriesToCreate.Count; i++)
         {
             TerritoryData CurrentTerritoryData = TerritoriesFactory.TerritoriesToCreate[i];
             Territory     NewTerritory         = TerritoriesFactory.CreateTerritory(CurrentTerritoryData);
             Territories.Add(CurrentTerritoryData.Name, NewTerritory);
         }
     }
 }
Exemple #2
0
 // Constructor
 public Territory(TerritoryData NewTerritoryData) : base()
 {
     Data = NewTerritoryData;
     StartNewFiber(1000, Tick);
 }
Exemple #3
0
        public Territory CreateTerritory(TerritoryData NewTerritoryData)
        {
            Territory NewTerritory = new Territory(NewTerritoryData);

            return(NewTerritory);
        }