Mercurial > mm7
comparison Player.h @ 1357:06926081358f
Player::CanEquip_RaceAndAlignmentCheck fixed 3 missing return values, started using new race and gender functions, moved everything to a switch
author | Grumpy7 |
---|---|
date | Sat, 13 Jul 2013 16:15:35 +0200 |
parents | af2fc30d765f |
children | b3ac17fd12de |
comparison
equal
deleted
inserted
replaced
1356:301e227439e7 | 1357:06926081358f |
---|---|
618 inline void SetUnconcious(bool state) {pConditions[Condition_Unconcious] = state;} | 618 inline void SetUnconcious(bool state) {pConditions[Condition_Unconcious] = state;} |
619 inline void SetDead(bool state) {pConditions[Condition_Dead] = state;} | 619 inline void SetDead(bool state) {pConditions[Condition_Dead] = state;} |
620 inline void SetPertified(bool state) {pConditions[Condition_Pertified] = state;} | 620 inline void SetPertified(bool state) {pConditions[Condition_Pertified] = state;} |
621 inline void SetEradicated(bool state) {pConditions[Condition_Eradicated] = state;} | 621 inline void SetEradicated(bool state) {pConditions[Condition_Eradicated] = state;} |
622 inline void SetZombie(bool state) {pConditions[Condition_Zombie] = state;} | 622 inline void SetZombie(bool state) {pConditions[Condition_Zombie] = state;} |
623 | |
624 inline bool IsRaceHuman() {return GetRace() == CHARACTER_RACE_HUMAN;} | |
625 inline bool IsRaceDwarf() {return GetRace() == CHARACTER_RACE_DWARF;} | |
626 inline bool IsRaceElf() {return GetRace() == CHARACTER_RACE_ELF;} | |
627 inline bool IsRaceGoblin() {return GetRace() == CHARACTER_RACE_GOBLIN;} | |
628 | |
629 inline bool IsMale() { return GetSexByVoice() == SEX_MALE;} | |
630 inline bool IsFemale() { return !IsMale();} | |
631 | |
623 __int64 pConditions[20]; | 632 __int64 pConditions[20]; |
624 unsigned __int64 uExperience; | 633 unsigned __int64 uExperience; |
625 char pName[16]; | 634 char pName[16]; |
626 PLAYER_SEX uSex; | 635 PLAYER_SEX uSex; |
627 PLAYER_CLASS_TYPE classType; | 636 PLAYER_CLASS_TYPE classType; |