Mercurial > mm7
comparison Player.h @ 1362:d6cf8ead9242
Condition checking functions slightly renamed, some final changes in Player::SetCondition
author | Grumpy7 |
---|---|
date | Mon, 15 Jul 2013 00:42:50 +0200 |
parents | b3ac17fd12de |
children | fd661c9e7f97 |
comparison
equal
deleted
inserted
replaced
1361:b3ac17fd12de | 1362:d6cf8ead9242 |
---|---|
572 bool CanCastSpell(unsigned int uRequiredMana); | 572 bool CanCastSpell(unsigned int uRequiredMana); |
573 void PlaySoundBasedOnCondition(int currPlayerId); | 573 void PlaySoundBasedOnCondition(int currPlayerId); |
574 void DrawPlayerBuffAnimBasedOnCondition(int currPlayerId); | 574 void DrawPlayerBuffAnimBasedOnCondition(int currPlayerId); |
575 void EquipBody(ITEM_EQUIP_TYPE uEquipType); | 575 void EquipBody(ITEM_EQUIP_TYPE uEquipType); |
576 | 576 |
577 bool Weak(); | 577 bool IsWeak(); |
578 bool Dead(); | 578 bool IsDead(); |
579 bool Eradicated(); | 579 bool IsEradicated(); |
580 bool Zombie(); | 580 bool IsZombie(); |
581 bool Cursed(); | 581 bool IsCursed(); |
582 bool Pertified(); | 582 bool IsPertified(); |
583 bool Unconcious(); | 583 bool IsUnconcious(); |
584 bool IsAsleep(); | |
585 bool IsParalyzed(); | |
584 | 586 |
585 void SetCursed(bool state); | 587 void SetCursed(bool state); |
586 void SetWeak(bool state); | 588 void SetWeak(bool state); |
587 void SetAsleep(bool state); | 589 void SetAsleep(bool state); |
588 void SetAfraid(bool state); | 590 void SetAfraid(bool state); |
610 inline bool IsRaceElf() {return GetRace() == CHARACTER_RACE_ELF;} | 612 inline bool IsRaceElf() {return GetRace() == CHARACTER_RACE_ELF;} |
611 inline bool IsRaceGoblin() {return GetRace() == CHARACTER_RACE_GOBLIN;} | 613 inline bool IsRaceGoblin() {return GetRace() == CHARACTER_RACE_GOBLIN;} |
612 | 614 |
613 inline bool IsMale() { return GetSexByVoice() == SEX_MALE;} | 615 inline bool IsMale() { return GetSexByVoice() == SEX_MALE;} |
614 inline bool IsFemale() { return !IsMale();} | 616 inline bool IsFemale() { return !IsMale();} |
615 | |
616 __int64 pConditions[20]; | 617 __int64 pConditions[20]; |
617 unsigned __int64 uExperience; | 618 unsigned __int64 uExperience; |
618 char pName[16]; | 619 char pName[16]; |
619 PLAYER_SEX uSex; | 620 PLAYER_SEX uSex; |
620 PLAYER_CLASS_TYPE classType; | 621 PLAYER_CLASS_TYPE classType; |