1 | |
---|
2 | |
---|
3 | /* |
---|
4 | orxonox - the future of 3D-vertical-scrollers |
---|
5 | |
---|
6 | Copyright (C) 2004 orx |
---|
7 | |
---|
8 | This program is free software; you can redistribute it and/or modify |
---|
9 | it under the terms of the GNU General Public License as published by |
---|
10 | the Free Software Foundation; either version 2, or (at your option) |
---|
11 | any later version. |
---|
12 | |
---|
13 | ### File Specific: |
---|
14 | main-programmer: Patrick Boenzli |
---|
15 | co-programmer: ... |
---|
16 | */ |
---|
17 | |
---|
18 | |
---|
19 | #include "character_attributes.h" |
---|
20 | #include "stdincl.h" |
---|
21 | |
---|
22 | using namespace std; |
---|
23 | |
---|
24 | |
---|
25 | /** |
---|
26 | \brief standard constructor |
---|
27 | \todo this constructor is not jet implemented - do it |
---|
28 | */ |
---|
29 | CharacterAttributes::CharacterAttributes () |
---|
30 | { |
---|
31 | this->setClassName ("CharacterAttributes"); |
---|
32 | } |
---|
33 | |
---|
34 | |
---|
35 | /** |
---|
36 | \brief standard deconstructor |
---|
37 | |
---|
38 | */ |
---|
39 | CharacterAttributes::~CharacterAttributes () |
---|
40 | { |
---|
41 | } |
---|
42 | |
---|
43 | |
---|
44 | /*=====================health=====================*/ |
---|
45 | |
---|
46 | /** |
---|
47 | \brief sets the health of the character |
---|
48 | \param helath |
---|
49 | */ |
---|
50 | void CharacterAttributes::setHealth(int health) |
---|
51 | {} |
---|
52 | |
---|
53 | /** |
---|
54 | \brief adds health to the charater |
---|
55 | \param health |
---|
56 | \returns health that couldnt be added due to healt limit |
---|
57 | */ |
---|
58 | int CharacterAttributes::addHealth(int health) |
---|
59 | {} |
---|
60 | |
---|
61 | /** |
---|
62 | \brief remove health due to damager for example |
---|
63 | \param amount of health |
---|
64 | \returns false if health is zero -> dead |
---|
65 | */ |
---|
66 | bool CharacterAttributes::substractHealth(int health) |
---|
67 | {} |
---|
68 | |
---|
69 | /** |
---|
70 | \brief gets the current amount of health |
---|
71 | \returns health |
---|
72 | */ |
---|
73 | int CharacterAttributes::getHealth() |
---|
74 | {} |
---|
75 | |
---|
76 | |
---|
77 | /** |
---|
78 | \brief sets maximum health |
---|
79 | \param health |
---|
80 | |
---|
81 | if healthMax = 0 -> unlimited |
---|
82 | */ |
---|
83 | void CharacterAttributes::setHealthMax(int healthMax) |
---|
84 | {} |
---|
85 | |
---|
86 | /** |
---|
87 | \brief gets health maximium |
---|
88 | \returns the health maximum |
---|
89 | */ |
---|
90 | int CharacterAttributes::getHealthMax() |
---|
91 | {} |
---|
92 | |
---|
93 | |
---|
94 | /*======================armor/ shields===================== */ |
---|
95 | /** |
---|
96 | \brief sets the shild strength |
---|
97 | \param strength |
---|
98 | */ |
---|
99 | void CharacterAttributes::setShieldStrength(int shieldStrength) |
---|
100 | {} |
---|
101 | |
---|
102 | /** |
---|
103 | \brief adds shield strength |
---|
104 | \param strength |
---|
105 | */ |
---|
106 | void CharacterAttributes::addShieldStrength(int shiledStrength) |
---|
107 | {} |
---|
108 | |
---|
109 | /** |
---|
110 | \brief substracts shield strength |
---|
111 | \param strength |
---|
112 | \returns amount of shield strength below zero after substraction. Magic: Troumble |
---|
113 | */ |
---|
114 | int CharacterAttributes::substractShieldStrength(int shieldStrength) |
---|
115 | {} |
---|
116 | |
---|
117 | /** |
---|
118 | \brief gets shield strength |
---|
119 | \returns the shield strength |
---|
120 | */ |
---|
121 | int CharacterAttributes::getShieldStrength() |
---|
122 | {} |
---|
123 | |
---|
124 | |
---|
125 | /*=====================damage=====================*/ |
---|
126 | /** |
---|
127 | \brief sets the amount of base damage dealt to all aircrafts |
---|
128 | \param damage |
---|
129 | */ |
---|
130 | void CharacterAttributes::setDamageToAirCraft(int damage) |
---|
131 | {} |
---|
132 | |
---|
133 | /** |
---|
134 | \brief gets the amount of base damage |
---|
135 | \returns base damage to aircrafts |
---|
136 | */ |
---|
137 | int CharacterAttributes::getDamageToAirCraft() |
---|
138 | {} |
---|
139 | |
---|
140 | |
---|
141 | /** |
---|
142 | \brief sets the amount of base damage dealt to all groundcrafts |
---|
143 | \param damage |
---|
144 | */ |
---|
145 | void CharacterAttributes::setDamageToGroundCraft(int damage) |
---|
146 | {} |
---|
147 | |
---|
148 | /** |
---|
149 | \briefgets the amount of base damage |
---|
150 | \returns base damage to groundcrafts |
---|
151 | */ |
---|
152 | int CharacterAttributes::getDamageToGroundCraft() |
---|
153 | {} |
---|
154 | |
---|
155 | |
---|
156 | /** |
---|
157 | \brief sets the damage modifier to the damage that is dealed via laser weapons |
---|
158 | \param modifier [0..1] |
---|
159 | |
---|
160 | eg. the damage is calculated after: damage = modifier * damageToGroundCraft |
---|
161 | */ |
---|
162 | void CharacterAttributes::setDamageLaserModifier(float modifier) |
---|
163 | {} |
---|
164 | |
---|
165 | /** |
---|
166 | \brief gets the damage modifier to the damage that is dealed via laser weapons |
---|
167 | \returns damage modifier |
---|
168 | |
---|
169 | eg. the damage is calculated after: damage = modifier * damageToGroundCraft |
---|
170 | */ |
---|
171 | float CharacterAttributes::getDamageLaserModifier() |
---|
172 | {} |
---|
173 | |
---|
174 | |
---|
175 | /** |
---|
176 | \brief sets the damage modifier to the damage that is dealed via plasma weapons |
---|
177 | \param damage modifier |
---|
178 | |
---|
179 | eg. the damage is calculated after: damage = modifier * damageToGroundCraft |
---|
180 | */ |
---|
181 | void CharacterAttributes::setDamagePlasmaModifier(float modifier) |
---|
182 | {} |
---|
183 | |
---|
184 | /** |
---|
185 | \brief gets the damage modifier to the damage that is dealed plasma weapons |
---|
186 | \returns damage modifier |
---|
187 | |
---|
188 | eg. the damage is calculated after: damage = modifier * damageToGroundCraft |
---|
189 | */ |
---|
190 | float CharacterAttributes::getDamagePlasmaModifier() |
---|
191 | {} |
---|
192 | |
---|
193 | |
---|
194 | /** |
---|
195 | \brief sets the damage modifier to the damage that is dealed via explosives |
---|
196 | \param damage modifier |
---|
197 | |
---|
198 | eg. the damage is calculated after: damage = modifier * damageToGroundCraft |
---|
199 | */ |
---|
200 | void CharacterAttributes::setDamageExplosiveModifier(float modifier) |
---|
201 | {} |
---|
202 | |
---|
203 | /** |
---|
204 | \brief sets the damage modifier to the damage that is dealed via explosives |
---|
205 | \returns damage modifier |
---|
206 | |
---|
207 | eg. the damage is calculated after: damage = modifier * damageToGroundCraft |
---|
208 | */ |
---|
209 | float CharacterAttributes::getDamageExplosiveModifier() |
---|
210 | {} |
---|
211 | |
---|
212 | |
---|
213 | /*=====================energy=====================*/ |
---|
214 | /** |
---|
215 | \brief sets the amount of energy |
---|
216 | \param energy |
---|
217 | */ |
---|
218 | void CharacterAttributes::setEnergy(int energy) |
---|
219 | {} |
---|
220 | |
---|
221 | /** |
---|
222 | \brief adds energy to the system |
---|
223 | \param amount of energy |
---|
224 | \returns amount of energy that is too much due to energy limit |
---|
225 | */ |
---|
226 | int CharacterAttributes::addEnergy(int addEnergy) |
---|
227 | {} |
---|
228 | |
---|
229 | /** |
---|
230 | \brief substracts energy from a system |
---|
231 | \param amount of energy |
---|
232 | \returns false if there is no energy anymore |
---|
233 | */ |
---|
234 | bool CharacterAttributes::substractEnergy(int subEnergy) |
---|
235 | {} |
---|
236 | |
---|
237 | /** |
---|
238 | \brief gets the amount of energy |
---|
239 | \returns energy |
---|
240 | */ |
---|
241 | int CharacterAttributes::getEnergy() |
---|
242 | {} |
---|
243 | |
---|
244 | |
---|
245 | /** |
---|
246 | \brief sets the energy consumption |
---|
247 | \param amount of energy |
---|
248 | */ |
---|
249 | void setEnergyConsumption(int energy) |
---|
250 | {} |
---|
251 | |
---|
252 | /** |
---|
253 | \brief gets the energy consumption |
---|
254 | \returns amount of energy |
---|
255 | */ |
---|
256 | int getEnergyConsumption() |
---|
257 | {} |
---|
258 | |
---|
259 | |
---|
260 | /** |
---|
261 | \brief sets the maximum energy level |
---|
262 | \param amount of energy |
---|
263 | */ |
---|
264 | void setEnergyMax(int energy) |
---|
265 | {} |
---|
266 | |
---|
267 | /** |
---|
268 | \brief gets the max energy level |
---|
269 | \returns amount of energy |
---|
270 | */ |
---|
271 | int getEnergyMax() |
---|
272 | {} |
---|