1 | /* |
---|
2 | orxonox - the future of 3D-vertical-scrollers |
---|
3 | |
---|
4 | Copyright (C) 2004 orx |
---|
5 | |
---|
6 | This program is free software; you can redistribute it and/or modify |
---|
7 | it under the terms of the GNU General Public License as published by |
---|
8 | the Free Software Foundation; either version 2, or (at your option) |
---|
9 | any later version. |
---|
10 | |
---|
11 | ### File Specific: |
---|
12 | main-programmer: Benjamin Grauer |
---|
13 | co-programmer: ... |
---|
14 | */ |
---|
15 | |
---|
16 | //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ |
---|
17 | |
---|
18 | #include "hud.h" |
---|
19 | |
---|
20 | using namespace std; |
---|
21 | |
---|
22 | |
---|
23 | /** |
---|
24 | * standard constructor |
---|
25 | * @todo this constructor is not jet implemented - do it |
---|
26 | */ |
---|
27 | Hud::Hud () |
---|
28 | { |
---|
29 | this->setClassID(CL_HUD, "Hud"); |
---|
30 | |
---|
31 | |
---|
32 | this->energyWidget = NULL; |
---|
33 | this->shieldWidget = NULL; |
---|
34 | this->armorWidget = NULL; |
---|
35 | } |
---|
36 | |
---|
37 | |
---|
38 | /** |
---|
39 | * standard deconstructor |
---|
40 | */ |
---|
41 | Hud::~Hud () |
---|
42 | { |
---|
43 | // delete what has to be deleted here |
---|
44 | } |
---|
45 | |
---|
46 | |
---|
47 | void Hud::loadParams(const TiXmlElement* root) |
---|
48 | { |
---|
49 | |
---|
50 | } |
---|
51 | |
---|
52 | void Hud::setBackGround() |
---|
53 | { |
---|
54 | |
---|
55 | } |
---|
56 | |
---|
57 | void Hud::setEnergyWidget(GLGuiWidget* widget) |
---|
58 | { |
---|
59 | // decopple old widget |
---|
60 | if (this->energyWidget != NULL) |
---|
61 | { |
---|
62 | this->energyWidget->hide(); |
---|
63 | } |
---|
64 | |
---|
65 | this->energyWidget = widget; |
---|
66 | if (this->energyWidget != NULL) |
---|
67 | { |
---|
68 | this->energyWidget->show(); |
---|
69 | this->energyWidget->setAbsCoor2D(10,80); |
---|
70 | this->energyWidget->setSize2D(20,300); |
---|
71 | } |
---|
72 | |
---|
73 | |
---|
74 | } |
---|
75 | |
---|
76 | void Hud::setShiledWidget(GLGuiWidget* widget) |
---|
77 | { |
---|
78 | |
---|
79 | } |
---|
80 | |
---|
81 | void Hud::setArmorWidget(GLGuiWidget* widget) |
---|
82 | { |
---|
83 | |
---|
84 | } |
---|
85 | |
---|
86 | void Hud::addWeaponWidget(GLGuiWidget* widget) |
---|
87 | { |
---|
88 | |
---|
89 | } |
---|
90 | |
---|
91 | void Hud::removeWeaponWidget(GLGuiWidget* widget) |
---|
92 | { |
---|
93 | |
---|
94 | } |
---|
95 | |
---|
96 | void setResolution(unsigned int resX, unsigned int resY); |
---|