comparison Player.h @ 1822:5f9eeb7bf8e6

Finishing Player.cpp, fixing some bugs
author Grumpy7
date Wed, 09 Oct 2013 08:06:26 +0200
parents af7f08135ffb
children bdac32c645c5
comparison
equal deleted inserted replaced
1821:49a4db499c0a 1822:5f9eeb7bf8e6
10 PLAYER_BUFF_RESIST_AIR = 0, 10 PLAYER_BUFF_RESIST_AIR = 0,
11 PLAYER_BUFF_BLESS = 1, 11 PLAYER_BUFF_BLESS = 1,
12 PLAYER_BUFF_RESIST_BODY = 2, 12 PLAYER_BUFF_RESIST_BODY = 2,
13 PLAYER_BUFF_RESIST_EARTH = 3, 13 PLAYER_BUFF_RESIST_EARTH = 3,
14 PLAYER_BUFF_FATE = 4, 14 PLAYER_BUFF_FATE = 4,
15 PLAYER_BUFF_RESIST_FIRE = 3, 15 PLAYER_BUFF_RESIST_FIRE = 5,
16 PLAYER_BUFF_HAMMERHANDS = 6, 16 PLAYER_BUFF_HAMMERHANDS = 6,
17 PLAYER_BUFF_HASTE = 7, 17 PLAYER_BUFF_HASTE = 7,
18 PLAYER_BUFF_HEROISM = 8, 18 PLAYER_BUFF_HEROISM = 8,
19 PLAYER_BUFF_RESIST_MIND = 9, 19 PLAYER_BUFF_RESIST_MIND = 9,
20 PLAYER_BUFF_PAIN_REFLECTION = 10, 20 PLAYER_BUFF_PAIN_REFLECTION = 10,
21 PLAYER_BUFF_PRESERVATION = 11, 21 PLAYER_BUFF_PRESERVATION = 11,
22 PLAYER_BUFF_REGENERATION = 12, 22 PLAYER_BUFF_REGENERATION = 12,
23 PLAYER_BUFF_13 = 13, 23 PLAYER_BUFF_SHIELD = 13,
24 PLAYER_BUFF_STONESKIN = 14, 24 PLAYER_BUFF_STONESKIN = 14,
25 PLAYER_BUFF_ACCURACY = 15, 25 PLAYER_BUFF_ACCURACY = 15,
26 PLAYER_BUFF_ENDURANCE = 16, 26 PLAYER_BUFF_ENDURANCE = 16,
27 PLAYER_BUFF_INTELLIGENCE = 17, 27 PLAYER_BUFF_INTELLIGENCE = 17,
28 PLAYER_BUFF_LUCK = 18, 28 PLAYER_BUFF_LUCK = 18,
29 PLAYER_BUFF_STRENGTH = 19, 29 PLAYER_BUFF_STRENGTH = 19,
30 PLAYER_BUFF_WILLPOWER = 20, 30 PLAYER_BUFF_WILLPOWER = 20,
31 PLAYER_BUFF_SPEED = 21, 31 PLAYER_BUFF_SPEED = 21,
32 PLAYER_BUFF_RESIST_WATER = 22 32 PLAYER_BUFF_RESIST_WATER = 22,
33 PLAYER_BUFF_WATER_WALK = 23
33 }; 34 };
34 35
35 36
36 #define PLAYER_GUILD_BITS__SPIRIT_MEMBERSHIP 58 37 #define PLAYER_GUILD_BITS__SPIRIT_MEMBERSHIP 58
37 #define PLAYER_GUILD_BITS__ARCOMAGE_WIN 103 38 #define PLAYER_GUILD_BITS__ARCOMAGE_WIN 103
590 int GetConditionDayOfWeek(unsigned int uCondition); 591 int GetConditionDayOfWeek(unsigned int uCondition);
591 bool NothingOrJustBlastersEquipped(); 592 bool NothingOrJustBlastersEquipped();
592 void SalesProcess(unsigned int inventory_idnx, int item_index, int _2devent_idx);//0x4BE2DD 593 void SalesProcess(unsigned int inventory_idnx, int item_index, int _2devent_idx);//0x4BE2DD
593 bool Recover(signed int a2); 594 bool Recover(signed int a2);
594 bool CanCastSpell(unsigned int uRequiredMana); 595 bool CanCastSpell(unsigned int uRequiredMana);
595 void PlayAwardSound(int currPlayerId); 596 void PlayAwardSound();
596 void EquipBody(ITEM_EQUIP_TYPE uEquipType); 597 void EquipBody(ITEM_EQUIP_TYPE uEquipType);
597 bool HasUnderwaterSuitEquipped(); 598 bool HasUnderwaterSuitEquipped();
598 bool HasItem(unsigned int uItemID, char a3); 599 bool HasItem(unsigned int uItemID, bool checkHeldItem);
599 void OnInventoryLeftClick(); 600 void OnInventoryLeftClick();
600 601
601 unsigned int GetMultiplierForSkillLevel(unsigned int skillValue, int mult1, int mult2, int mult3, int mult4); 602 unsigned int GetMultiplierForSkillLevel(unsigned int skillValue, int mult1, int mult2, int mult3, int mult4);
602 int CalculateMeleeDmgToEnemyWithWeapon( ItemGen * weapon, unsigned int uTargetActorID , bool addOneDice); 603 int CalculateMeleeDmgToEnemyWithWeapon( ItemGen * weapon, unsigned int uTargetActorID , bool addOneDice);
603 bool WearsItemAnyWhere(int item_id); 604 bool WearsItemAnyWhere(int item_id);
604 float GetArmorRecoveryMultiplierFromSkillLevel( unsigned char armour_skill_type, float param2, float param3, float param4, float param5 ); 605 float GetArmorRecoveryMultiplierFromSkillLevel( unsigned char armour_skill_type, float param2, float param3, float param4, float param5 );
605 void SetSkillByEvent(unsigned __int16 Player::* skillToSet, unsigned __int16 skillValue, int currPlayerId); 606 void SetSkillByEvent(unsigned __int16 Player::* skillToSet, unsigned __int16 skillValue);
606 void AddSkillByEvent( unsigned __int16 Player::* skillToSet, unsigned __int16 addSkillValue, int currPlayerId ); 607 void AddSkillByEvent( unsigned __int16 Player::* skillToSet, unsigned __int16 addSkillValue);
607 void PlayAwardSound_Anim(int currPlayerId); 608 void PlayAwardSound_Anim();
608 void PlayAwardSound_Anim_Face(int currPlayerId, PlayerSpeech speech); 609 void PlayAwardSound_Anim_Face(PlayerSpeech speech);
609 void PlayAwardSound_Anim97(int currPlayerId); 610 void PlayAwardSound_Anim97();
610 void PlayAwardSound_Anim97_Face(int currPlayerId, PlayerSpeech speech); 611 void PlayAwardSound_Anim97_Face(PlayerSpeech speech);
611 void PlayAwardSound_Anim98(int currPlayerId); 612 void PlayAwardSound_Anim98();
612 void PlayAwardSound_Anim98_Face(int currPlayerId, PlayerSpeech speech); 613 void PlayAwardSound_Anim98_Face(PlayerSpeech speech);
613 614
614 bool IsWeak(); 615 bool IsWeak();
615 bool IsDead(); 616 bool IsDead();
616 bool IsEradicated(); 617 bool IsEradicated();
617 bool IsZombie(); 618 bool IsZombie();
665 ItemGen* GetBootItem(); 666 ItemGen* GetBootItem();
666 ItemGen* GetAmuletItem(); 667 ItemGen* GetAmuletItem();
667 ItemGen* GetNthRingItem(int ringNum); 668 ItemGen* GetNthRingItem(int ringNum);
668 ItemGen* GetNthEquippedIndexItem(int index); 669 ItemGen* GetNthEquippedIndexItem(int index);
669 ItemGen* GetItem(unsigned int PlayerEquipment::* itemPos); 670 ItemGen* GetItem(unsigned int PlayerEquipment::* itemPos);
671 int GetPlayerIndex();
672
670 __int64 pConditions[20]; 673 __int64 pConditions[20];
671 unsigned __int64 uExperience; 674 unsigned __int64 uExperience;
672 char pName[16]; 675 char pName[16];
673 PLAYER_SEX uSex; 676 PLAYER_SEX uSex;
674 PLAYER_CLASS_TYPE classType; 677 PLAYER_CLASS_TYPE classType;
806 int field_1988[49]; 809 int field_1988[49];
807 char field_1A4C; 810 char field_1A4C;
808 char field_1A4D; 811 char field_1A4D;
809 char lastOpenedSpellbookPage; 812 char lastOpenedSpellbookPage;
810 unsigned __int8 uQuickSpell; 813 unsigned __int8 uQuickSpell;
811 char field_1A50[64]; 814 char playerEventBits[64];
812 char _some_attack_bonus; 815 char _some_attack_bonus;
813 char field_1A91; 816 char field_1A91;
814 char _melee_dmg_bonus; 817 char _melee_dmg_bonus;
815 char field_1A93; 818 char field_1A93;
816 char _ranged_atk_bonus; 819 char _ranged_atk_bonus;