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_KOTOR_ROOM_H
26 #define ENGINES_KOTOR_ROOM_H
27 
28 #include "src/common/scopedptr.h"
29 
31 
33 
34 namespace Common {
35  class UString;
36 }
37 
38 namespace Engines {
39 
40 namespace KotOR {
41 
42 class Room {
43 public:
44  Room(const Common::UString &resRef, float x, float y, float z);
45  ~Room();
46 
47  Common::UString getResRef() const;
48  float evaluateElevation(float x, float y, bool highlight = false);
50  void setWalkmeshInvisible(bool invisible);
51 
52  void show();
53  void hide();
54  bool isVisible() const;
55 
56 private:
60 
61  void load(const Common::UString &resRef, float x, float y, float z);
62 };
63 
64 } // End of namespace KotOR
65 
66 } // End of namespace Engines
67 
68 #endif // ENGINES_KOTOR_ROOM_H
Room(const Common::UString &resRef, float x, float y, float z)
Definition: room.cpp:39
Definition: 2dafile.h:39
A class holding an UTF-8 string.
Definition: ustring.h:48
Walkmesh _walkmesh
Definition: room.h:59
Common::UString _resRef
Definition: room.h:57
float evaluateElevation(float x, float y, bool highlight=false)
Definition: room.cpp:64
Common::ScopedPtr< Graphics::Aurora::Model > _model
Definition: room.h:58
A simple scoped smart pointer template.
void disableWalkmeshHighlight()
Definition: room.cpp:74
Basic Aurora graphics types.
Common::UString getResRef() const
Definition: room.cpp:60
void setWalkmeshInvisible(bool invisible)
Definition: room.cpp:78
bool isVisible() const
Definition: room.cpp:94
KotOR walkmesh (BWM).
void load(const Common::UString &resRef, float x, float y, float z)
Definition: room.cpp:47