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_DRAGONAGE2_ROOM_H
26 #define ENGINES_DRAGONAGE2_ROOM_H
27 
28 #include <vector>
29 
30 #include "src/common/ptrvector.h"
31 #include "src/common/ustring.h"
32 
33 #include "src/aurora/types.h"
34 
36 
38 
39 namespace Engines {
40 
41 namespace DragonAge2 {
42 
43 class Room {
44 public:
45  Room(const Aurora::GFF4Struct &room);
46  ~Room();
47 
48  int32 getID() const;
49 
50  void show();
51  void hide();
52 
53 private:
55 
57 
59 
61 
62  void load(const Aurora::GFF4Struct &room);
63  void loadLayout(const Common::UString &roomFile);
64 
65  void clean();
66 };
67 
68 } // End of namespace DragonAge2
69 
70 } // End of namespace Engines
71 
72 #endif // ENGINES_DRAGONAGE2_ROOM_H
Room(const Aurora::GFF4Struct &room)
Definition: room.cpp:60
Generic Aurora engines resource utility functions.
A class holding an UTF-8 string.
Definition: ustring.h:48
void load(const Aurora::GFF4Struct &room)
std::list< Common::ChangeID > ChangeList
Definition: resources.h:41
Basic Aurora graphics types.
A vector storing pointer to objects, with automatic deletion.
Unicode string handling.
void loadLayout(const Common::UString &roomFile)
Definition: room.cpp:100
Basic type definitions to handle files used in BioWare&#39;s Aurora engine.
int32 getID() const
Definition: room.cpp:74
Common::PtrVector< Graphics::Aurora::Model > Models
Definition: room.h:54
ChangeList _resources
Definition: room.h:60
int32_t int32
Definition: types.h:203