Mercurial > might-and-magic-trilogy
comparison Player.h @ 49:25fabc49627b
Слияние
author | Ritor1 |
---|---|
date | Tue, 23 Oct 2012 17:34:20 +0600 |
parents | 8a8dd0164b12 |
children | c28452924144 |
comparison
equal
deleted
inserted
replaced
48:6a62c4005f0e | 49:25fabc49627b |
---|---|
191 }; | 191 }; |
192 | 192 |
193 #pragma pack(push, 1) | 193 #pragma pack(push, 1) |
194 struct Player | 194 struct Player |
195 { | 195 { |
196 enum Condition: unsigned __int32 | |
197 { | |
198 Condition_Cursed = 0, | |
199 Condition_Weak = 1, | |
200 Condition_Sleep = 2, | |
201 Condition_Fear = 3, | |
202 Condition_Drunk = 4, | |
203 Condition_Insane = 5, | |
204 Condition_Poison1 = 6, | |
205 Condition_Disease1 = 7, | |
206 Condition_Posion2 = 8, | |
207 Condition_Disease2 = 9, | |
208 Condition_Poison3 = 10, | |
209 Condition_Disease3 = 11, | |
210 Condition_Paralyzed = 12, | |
211 Condition_Unconcious = 13, | |
212 Condition_Dead = 14, | |
213 Condition_Pertified = 15, | |
214 Condition_Eradicated = 16, | |
215 Condition_Zombie = 17, | |
216 Condition_Good = 18 | |
217 }; | |
218 | |
196 Player(); | 219 Player(); |
197 | 220 |
198 void SetVariable(enum VariableType var, signed int a3); | 221 void SetVariable(enum VariableType var, signed int a3); |
199 void AddVariable(enum VariableType var, signed int val); | 222 void AddVariable(enum VariableType var, signed int val); |
200 void SubtractVariable(enum VariableType var, void *a3); | 223 void SubtractVariable(enum VariableType var, void *a3); |
313 bool _43EEF3(); | 336 bool _43EEF3(); |
314 void _4BE2DD(unsigned int a2, int a3, int _2devent_idx); | 337 void _4BE2DD(unsigned int a2, int a3, int _2devent_idx); |
315 bool Recover(signed int a2); | 338 bool Recover(signed int a2); |
316 bool CanCastSpell(unsigned int uRequiredMana); | 339 bool CanCastSpell(unsigned int uRequiredMana); |
317 | 340 |
341 inline bool Dead() {return pConditions[Condition::Condition_Dead] != 0;} | |
342 inline bool Eradicated() {return pConditions[Condition::Condition_Eradicated] != 0;} | |
343 | |
318 | 344 |
319 | 345 |
320 __int64 pConditions[20]; | 346 __int64 pConditions[20]; |
321 unsigned __int64 uExperience; | 347 unsigned __int64 uExperience; |
322 char pName[16]; | 348 char pName[16]; |