Example #1
0
        public Region(int id, SuperRegion superRegion, string playerName, int armies)
        {
            Id          = id;
            SuperRegion = superRegion;
            Neighbors   = new List <Region>();
            PlayerName  = playerName;
            Armies      = armies;

            superRegion.AddSubRegion(this);
        }
Example #2
0
        public Region(int id, SuperRegion superRegion)
        {
            Id          = id;
            SuperRegion = superRegion;
            Neighbors   = new List <Region>();
            PlayerName  = "unknown";
            Armies      = 0;

            superRegion.AddSubRegion(this);
        }
Example #3
0
        public Region(int id, SuperRegion superRegion, String playerName, int armies)
        {
            this.id = id;
            this.superRegion = superRegion;
            this.neighbors = new List<Region>();
            this.playerName = playerName;
            this.armies = armies;
            this.previousturnarmies = armies;
            this.deployedthisturn = false;
            //this.deployedlastturn = false;

            this.reservedArmies = 0;
            this.pledgedArmies = 0;

            superRegion.AddSubRegion(this);
        }