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