public Room(Mirror theMirror, int x, int y) { X = x; Y = y; mirror = theMirror; isVisited = new Dictionary <CardinalDirection, bool> (); isVisited [CardinalDirection.North] = false; isVisited [CardinalDirection.South] = false; isVisited [CardinalDirection.East] = false; isVisited [CardinalDirection.West] = false; }
public void AddRoom(int x, int y, Mirror mirror) { rooms [x, y] = new Room(mirror, x, y); }