Esempio n. 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;
        }
Esempio n. 2
0
        internal RegionMin(Region region, byte ownerEncoded, Player playerPerspective, bool isFogOfWarGame = true)
        {
            Army         = region.Army;
            OwnerEncoded = region.Owner == null ? (byte)0 : ownerEncoded;

            if (!isFogOfWarGame || region.IsNeighbourOf(playerPerspective))
            {
                IsVisible = true;
            }

            Static = new RegionMinStatic(region, playerPerspective);
        }