コード例 #1
0
        private Room CreateRoom()
        {
            Dimension roomSize     = _randomizer.ChooseDimension(MaxRoomSize);
            Position  roomLocation = _randomizer.ChoosePosition(Length, Width);
            Room      result       = new Room(GetNextRoomName(), roomLocation, roomSize);

            return(result);
        }