xoreos  0.0.5
ingame.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_GUI_INGAME_INGAME_H
26 #define ENGINES_KOTOR_GUI_INGAME_INGAME_H
27 
29 
32 
34 
35 namespace Engines {
36 
37 namespace KotOR {
38 
39 class IngameGUI {
40 public:
41  IngameGUI(Module &module, ::Engines::Console *console = 0);
42 
43  void show();
44  void hide();
45 
47  void setMinimap(const Common::UString &map, int northAxis,
48  float worldPt1X, float worldPt1Y, float worldPt2X, float worldPt2Y,
49  float mapPt1X, float mapPt1Y, float mapPt2X, float mapPt2Y);
51  void setPosition(float x, float y);
53  void setRotation(float angle);
54 
55  void setReturnStrref(uint32 id);
57  void setReturnEnabled(bool enabled);
58 
59  // Container inventory handling
60  void showContainer(Inventory &inv);
61 
62  // Party handling.
63  void setPartyLeader(Creature *creature);
64  void setPartyMember1(Creature *creature);
65  void setPartyMember2(Creature *creature);
66 
67  void addEvent(const Events::Event &event);
68  void processEventQueue();
69 
70 private:
72 };
73 
74 } // End of namespace KotOR
75 
76 } // End of namespace Engines
77 
78 #endif // ENGINES_KOTOR_GUI_INGAME_INGAME_H
void show()
Show the ingame GUI elements.
Definition: ingame.cpp:35
Common::ScopedPtr< HUD > _hud
Definition: ingame.h:71
void addEvent(const Events::Event &event)
Definition: ingame.cpp:86
A class holding an UTF-8 string.
Definition: ustring.h:48
void showContainer(Inventory &inv)
Definition: ingame.cpp:70
void setRotation(float angle)
Set the rotation for the minimap arrow.
Definition: ingame.cpp:54
Collection of items.
SDL_Event Event
Definition: types.h:42
void setPartyMember2(Creature *creature)
Definition: ingame.cpp:82
void hide()
Hide the ingame GUI elements.
Definition: ingame.cpp:39
Generic Aurora engines (debug) console.
A scoped plain pointer, allowing pointer-y access and normal deletion.
Definition: scopedptr.h:120
void setReturnQueryStrref(uint32 id)
Definition: ingame.cpp:62
void setReturnEnabled(bool enabled)
Definition: ingame.cpp:66
void setReturnStrref(uint32 id)
Definition: ingame.cpp:58
void setMinimap(const Common::UString &map, int northAxis, float worldPt1X, float worldPt1Y, float worldPt2X, float worldPt2Y, float mapPt1X, float mapPt1Y, float mapPt2X, float mapPt2Y)
Set the minimap with the specified id and both scaling points.
Definition: ingame.cpp:43
void setPosition(float x, float y)
Set the position for the minimap.
Definition: ingame.cpp:50
void setPartyLeader(Creature *creature)
Definition: ingame.cpp:74
uint32_t uint32
Definition: types.h:204
void setPartyMember1(Creature *creature)
Definition: ingame.cpp:78
The context needed to run a Star Wars: Knights of the Old Republic module.
The ingame HUD.
IngameGUI(Module &module, ::Engines::Console *console=0)