private bool wumpus; // Is the Wumpus in the room? #endregion Fields #region Constructors /****************************************************************************************** * Constructors *****************************************************************************************/ // No parameters public Room() { roomNumber = -1; adjacentRooms = null; player = false; wumpus = false; hazard = null; }
// All parameters with default values public Room(int room, Room[] adjRooms = null, bool player = false, bool wumpus = false, Hazard hazard = null) { roomNumber = room; adjacentRooms = adjRooms; this.player = player; this.wumpus = wumpus; this.hazard = hazard; }