xoreos  0.0.5
room.h
Go to the documentation of this file.
1 /* xoreos - A reimplementation of BioWare's Aurora engine
2  *
3  * xoreos is the legal property of its developers, whose names
4  * can be found in the AUTHORS file distributed with this source
5  * distribution.
6  *
7  * xoreos is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 3
10  * of the License, or (at your option) any later version.
11  *
12  * xoreos is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with xoreos. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
25 #ifndef ENGINES_JADE_ROOM_H
26 #define ENGINES_JADE_ROOM_H
27 
28 #include "src/common/scopedptr.h"
29 #include "src/common/changeid.h"
30 
32 
33 namespace Engines {
34 
35 namespace Jade {
36 
37 class Room {
38 public:
39  Room(const Common::UString &resRef, uint32 id, float x, float y, float z, bool walkable);
40  ~Room();
41 
42  const Common::UString &getResRef() const;
43 
44  bool isWalkable() const;
45 
46  void show();
47  void hide();
48 
49 private:
51 
53 
55 
56  bool _walkable;
57 
58  void load(const Common::UString &resRef, uint32 id, float x, float y, float z);
59  void unload();
60 };
61 
62 } // End of namespace Jade
63 
64 } // End of namespace Engines
65 
66 #endif // ENGINES_JADE_ROOM_H
A class holding an UTF-8 string.
Definition: ustring.h:48
A simple scoped smart pointer template.
Common::ChangeID _resources
Definition: room.h:50
Basic Aurora graphics types.
Helper class to represent an undoable change.
bool isWalkable() const
Definition: room.cpp:52
Room(const Common::UString &resRef, uint32 id, float x, float y, float z, bool walkable)
Definition: room.cpp:38
void load(const Common::UString &resRef, uint32 id, float x, float y, float z)
Definition: room.cpp:56
Common::ScopedPtr< Graphics::Aurora::Model > _model
Definition: room.h:54
A class representing an undoable change.
Definition: changeid.h:35
uint32_t uint32
Definition: types.h:204
const Common::UString & getResRef() const
Definition: room.cpp:48
const Common::UString & _resRef
Definition: room.h:52
bool _walkable
Definition: room.h:56