Debian Codegraph @

src/level/RoomAccess.h

raw
1 #ifndef HEADER_ROOMACCESS_H
2 #define HEADER_ROOMACCESS_H
3
4 class Room;
5
6 #include "NoCopy.h"
7
8 /**
9 * Interface to access changing room.
10 */
11 class RoomAccess : public NoCopy {
12 private:
13 Room *m_room;
14 private:
15 void checkRoom() const;
16 public:
17 RoomAccess();
18 ~RoomAccess();
19 void takeRoom(Room *new_room);
20
21 void cleanRoom();
22 bool isRoom() const { return !!m_room; }
23 Room *room();
24 const Room *const_room() const;
25 };
26
27 #endif