Beispiel #1
0
        public Tile(int x, int y, TileType tileType, TileOwnedState ownerState)
        {
            this.gridCoordinates = new GridCoordinates(x, y);

            this.tileType = tileType;

            this.ownerState = ownerState;

            this.name = String.Format("Tile-{0}-{1}", gridCoordinates.X, gridCoordinates.Y);

            ClearOwner();
        }
Beispiel #2
0
        public void ClearOwner()
        {
            owner = Player.Dummy;

            ownerState = TileOwnedState.Free;
        }
Beispiel #3
0
        public void SetOwner(Player owner)
        {
            this.owner = owner;

            ownerState = TileOwnedState.Owned;
        }