Example #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);
         }
     }
 }
Example #2
0
 // Constructor
 public Territory(TerritoryData NewTerritoryData) : base()
 {
     Data = NewTerritoryData;
     StartNewFiber(1000, Tick);
 }
Example #3
0
        public Territory CreateTerritory(TerritoryData NewTerritoryData)
        {
            Territory NewTerritory = new Territory(NewTerritoryData);

            return(NewTerritory);
        }