Beispiel #1
0
        public RegionMin(int regionId, SuperRegionMin superRegion, int army, bool isFogOfWarGame = true, bool isWasteland = false)
        {
            Static = new RegionMinStatic(regionId, superRegion, isWasteland);
            Army   = army;

            IsVisible = !isFogOfWarGame;
        }
Beispiel #2
0
        internal MapMin ShallowCopy()
        {
            RegionMin[] regionsMin = new RegionMin[RegionsMin.Length];
            Array.Copy(RegionsMin, regionsMin, RegionsMin.Length);

            SuperRegionMin[] superRegionsMin = new SuperRegionMin[SuperRegionsMin.Length];
            Array.Copy(SuperRegionsMin, superRegionsMin, SuperRegionsMin.Length);

            return(new MapMin(regionsMin, superRegionsMin));
        }
Beispiel #3
0
 public RegionMinStatic(int regionId, SuperRegionMin superRegion, bool isWasteland = false)
 {
     Id          = regionId;
     SuperRegion = superRegion;
     IsWasteland = isWasteland;
 }
Beispiel #4
0
 public RegionMinStatic(Region region, Player ownerEncoded)
 {
     Id          = region.Id;
     SuperRegion = new SuperRegionMin(region.SuperRegion, ownerEncoded);
 }