comparison Player.h @ 947:99aa9c8464cf

Improved conditions handling.
author Nomad
date Wed, 01 May 2013 14:30:02 +0200
parents ae9e2a339b09
children c0d0656aa662
comparison
equal deleted inserted replaced
946:eb3bb0f2e1b9 947:99aa9c8464cf
574 inline bool Dead() {return pConditions[Condition::Condition_Dead] != 0;} 574 inline bool Dead() {return pConditions[Condition::Condition_Dead] != 0;}
575 inline bool Eradicated() {return pConditions[Condition::Condition_Eradicated] != 0;} 575 inline bool Eradicated() {return pConditions[Condition::Condition_Eradicated] != 0;}
576 inline bool Zombie() {return pConditions[Condition::Condition_Zombie] != 0;} 576 inline bool Zombie() {return pConditions[Condition::Condition_Zombie] != 0;}
577 inline bool Cursed() {return pConditions[Condition::Condition_Cursed] != 0;} 577 inline bool Cursed() {return pConditions[Condition::Condition_Cursed] != 0;}
578 inline bool Pertified() {return pConditions[Condition::Condition_Pertified] != 0;} 578 inline bool Pertified() {return pConditions[Condition::Condition_Pertified] != 0;}
579
580 inline void SetCursed(bool state) {pConditions[Condition::Condition_Cursed] = state;}
581 inline void SetWeak(bool state) {pConditions[Condition::Condition_Weak] = state;}
582 inline void SetAsleep(bool state) {pConditions[Condition::Condition_Sleep] = state;}
583 inline void SetAfraid(bool state) {pConditions[Condition::Condition_Fear] = state;}
584 inline void SetDrunk(bool state) {pConditions[Condition::Condition_Drunk] = state;}
585 inline void SetInsane(bool state) {pConditions[Condition::Condition_Insane] = state;}
586 inline void SetPoison1(bool state) {pConditions[Condition::Condition_Poison1] = state;}
587 inline void SetDisease1(bool state) {pConditions[Condition::Condition_Disease1] = state;}
588 inline void SetPoison2(bool state) {pConditions[Condition::Condition_Poison2] = state;}
589 inline void SetDisease2(bool state) {pConditions[Condition::Condition_Disease2] = state;}
590 inline void SetPoison3(bool state) {pConditions[Condition::Condition_Poison3] = state;}
591 inline void SetDisease3(bool state) {pConditions[Condition::Condition_Disease3] = state;}
592 inline void SetParalyzed(bool state) {pConditions[Condition::Condition_Paralyzed] = state;}
593 inline void SetUnconcious(bool state) {pConditions[Condition::Condition_Unconcious] = state;}
594 inline void SetDead(bool state) {pConditions[Condition::Condition_Dead] = state;}
595 inline void SetPertified(bool state) {pConditions[Condition::Condition_Pertified] = state;}
596 inline void SetEradicated(bool state) {pConditions[Condition::Condition_Eradicated] = state;}
597 inline void SetZombie(bool state) {pConditions[Condition::Condition_Zombie] = state;}
598
579 599
580 600
581 601
582 __int64 pConditions[20]; 602 __int64 pConditions[20];
583 unsigned __int64 uExperience; 603 unsigned __int64 uExperience;