Beispiel #1
0
        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;
        }
Beispiel #2
0
 // 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;
 }