Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
 public East(MapSite map)
     : base(map)
 {
 }
Exemplo n.º 3
0
 public West(MapSite map)
     : base(map)
 {
 }
Exemplo n.º 4
0
 public South(MapSite map)
     : base(map)
 {
 }
Exemplo n.º 5
0
 public North(MapSite map)
     : base(map)
 {
 }
Exemplo n.º 6
0
 public Position(MapSite map)
 {
     _map = map;
 }
Exemplo n.º 7
0
 public void SetSide(Direction direction, MapSite mapSide)
 {
     sides.Add(direction, mapSide);
 }
Exemplo n.º 8
0
 public void SetSide(Direction direction, MapSite mapSide)
 {
     sides.Add(direction, mapSide);
 }