public void SetSide(Direction orientate, MapSite map) { switch (orientate) { case Direction.North: North = new North(map); South = new South(new Wall()); East = new East(new Wall()); West = new West(new Wall()); break; case Direction.East: East = new East(map); North = new North(new Wall()); South = new South(new Wall()); West = new West(new Wall()); break; case Direction.South: South = new South(map); East = new East(new Wall()); North = new North(new Wall()); West = new West(new Wall()); break; case Direction.West: West = new West(map); South = new South(new Wall()); East = new East(new Wall()); North = new North(new Wall()); break; } }
public East(MapSite map) : base(map) { }
public West(MapSite map) : base(map) { }
public South(MapSite map) : base(map) { }
public North(MapSite map) : base(map) { }
public Position(MapSite map) { _map = map; }
public void SetSide(Direction direction, MapSite mapSide) { sides.Add(direction, mapSide); }