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