예제 #1
0
파일: Room.cs 프로젝트: planetmalone/Wumpus
        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;
        }
예제 #2
0
파일: Room.cs 프로젝트: planetmalone/Wumpus
 // 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;
 }