comparison Player.h @ 1572:19f1735fca80

Слияние
author Ritor1
date Sun, 08 Sep 2013 17:07:58 +0600
parents 9f8b3e904e14
children 5658d0f3b5ee
comparison
equal deleted inserted replaced
1571:ef20d4608b1a 1572:19f1735fca80
8 8
9 #define PLAYER_BUFF_BLESS 1 9 #define PLAYER_BUFF_BLESS 1
10 #define PLAYER_BUFF_FATE 4 10 #define PLAYER_BUFF_FATE 4
11 #define PLAYER_BUFF_HAMMERHANDS 6 11 #define PLAYER_BUFF_HAMMERHANDS 6
12 #define PLAYER_BUFF_7 7 12 #define PLAYER_BUFF_7 7
13 #define PLAYER_BUFF_8 8
13 #define PLAYER_BUFF_PAIN_REFLECTION 10 14 #define PLAYER_BUFF_PAIN_REFLECTION 10
14 #define PLAYER_BUFF_PRESERVATION 11 15 #define PLAYER_BUFF_PRESERVATION 11
15 #define PLAYER_BUFF_REGENERATION 12 16 #define PLAYER_BUFF_REGENERATION 12
17 #define PLAYER_BUFF_13 13
18 #define PLAYER_BUFF_14 14
16 19
17 20
18 #define PLAYER_GUILD_BITS__SPIRIT_MEMBERSHIP 58 21 #define PLAYER_GUILD_BITS__SPIRIT_MEMBERSHIP 58
19 #define PLAYER_GUILD_BITS__ARCOMAGE_WIN 103 22 #define PLAYER_GUILD_BITS__ARCOMAGE_WIN 103
20 #define PLAYER_GUILD_BITS__ARCOMAGE_LOSE 104 23 #define PLAYER_GUILD_BITS__ARCOMAGE_LOSE 104
458 void AddVariable(enum VariableType var, signed int val); 461 void AddVariable(enum VariableType var, signed int val);
459 bool SubtractVariable(enum VariableType VarNum, signed int pValue); 462 bool SubtractVariable(enum VariableType VarNum, signed int pValue);
460 bool CompareVariable(enum VariableType VarNum, signed int pValue); 463 bool CompareVariable(enum VariableType VarNum, signed int pValue);
461 void UseItem_DrinkPotion_etc(signed int a2, int a3); 464 void UseItem_DrinkPotion_etc(signed int a2, int a3);
462 bool AddItem(struct ItemGen *pItem); 465 bool AddItem(struct ItemGen *pItem);
463 int GetActualAttribute(CHARACTER_ATTRIBUTE_TYPE attrId); 466 int GetActualAttribute(CHARACTER_ATTRIBUTE_TYPE attrId, unsigned short Player::* attrValue, unsigned short Player::* attrBonus);
464 int GetBaseStrength(); 467 int GetBaseStrength();
465 int GetBaseIntelligence(); 468 int GetBaseIntelligence();
466 int GetBaseWillpower(); 469 int GetBaseWillpower();
467 int GetBaseEndurance(); 470 int GetBaseEndurance();
468 int GetBaseAccuracy(); 471 int GetBaseAccuracy();
478 int GetActualSpeed(); 481 int GetActualSpeed();
479 int GetActualLuck(); 482 int GetActualLuck();
480 int GetActualAttack(int a2); 483 int GetActualAttack(int a2);
481 int GetMeleeDamageMinimal(); 484 int GetMeleeDamageMinimal();
482 int GetMeleeDamageMaximal(); 485 int GetMeleeDamageMaximal();
483 int CalculateMeleeDamageTo(int a2, int a3, unsigned int uTargetActorID); 486 int CalculateMeleeDamageTo(bool ignoreSkillBonus, bool ignoreOffhand, unsigned int uTargetActorID);
484 int GetRangedAttack(); 487 int GetRangedAttack();
485 int GetRangedDamageMin(); 488 int GetRangedDamageMin();
486 int GetRangedDamageMax(); 489 int GetRangedDamageMax();
487 bool CalculateRangedDamageTo(int a2); 490 int CalculateRangedDamageTo(int a2);
488 char *GetMeleeDamageString(); 491 char *GetMeleeDamageString();
489 char *GetRangedDamageString(); 492 char *GetRangedDamageString();
490 bool CanTrainToNextLevel(); 493 bool CanTrainToNextLevel();
491 unsigned int GetExperienceDisplayColor(); 494 unsigned int GetExperienceDisplayColor();
492 int CalculateIncommingDamage(DAMAGE_TYPE dmg_type, int amount); 495 int CalculateIncommingDamage(DAMAGE_TYPE dmg_type, int amount);
532 unsigned int GetStatColor(int uStat); 535 unsigned int GetStatColor(int uStat);
533 bool DiscardConditionIfLastsLongerThan(unsigned int uCondition, unsigned __int64 uTime); 536 bool DiscardConditionIfLastsLongerThan(unsigned int uCondition, unsigned __int64 uTime);
534 int SelectPhrasesTransaction(ItemGen *pItem, int building_type, int BuildID_2Events, int a5); 537 int SelectPhrasesTransaction(ItemGen *pItem, int building_type, int BuildID_2Events, int a5);
535 int GetBodybuilding(); 538 int GetBodybuilding();
536 int GetMeditation(); 539 int GetMeditation();
537 int CanIdentify(ItemGen *pItem); 540 bool CanIdentify(ItemGen *pItem);
538 int CanRepair(ItemGen *); 541 bool CanRepair(ItemGen *pItem);
539 int GetMerchant(); 542 int GetMerchant();
540 int GetPerception(); 543 int GetPerception();
541 int GetDisarmTrap(); 544 int GetDisarmTrap();
542 char GetLearningPercent(); 545 char GetLearningPercent();
543 bool CanFitItem(unsigned int uSlot, unsigned int uItemID); 546 bool CanFitItem(unsigned int uSlot, unsigned int uItemID);
576 bool CanCastSpell(unsigned int uRequiredMana); 579 bool CanCastSpell(unsigned int uRequiredMana);
577 void PlaySoundBasedOnCondition(int currPlayerId); 580 void PlaySoundBasedOnCondition(int currPlayerId);
578 void DrawPlayerBuffAnimBasedOnCondition(int currPlayerId); 581 void DrawPlayerBuffAnimBasedOnCondition(int currPlayerId);
579 void EquipBody(ITEM_EQUIP_TYPE uEquipType); 582 void EquipBody(ITEM_EQUIP_TYPE uEquipType);
580 583
584 unsigned int GetMultiplierForSkillLevel(unsigned int skillValue, int mult1, int mult2, int mult3, int mult4);
585 int CalculateMeleeDmgToEnemyWithWeapon( ItemGen * weapon, unsigned int uTargetActorID , bool addOneDice);
586 bool WearsItemAnyWhere(int item_id);
587
581 bool IsWeak(); 588 bool IsWeak();
582 bool IsDead(); 589 bool IsDead();
583 bool IsEradicated(); 590 bool IsEradicated();
584 bool IsZombie(); 591 bool IsZombie();
585 bool IsCursed(); 592 bool IsCursed();
608 void SetZombie(bool state); 615 void SetZombie(bool state);
609 616
610 void SetCondWeakWithBlockCheck (int blockable); 617 void SetCondWeakWithBlockCheck (int blockable);
611 void SetCondInsaneWithBlockCheck (int blockable); 618 void SetCondInsaneWithBlockCheck (int blockable);
612 void SetCondDeadWithBlockCheck (int blockable); 619 void SetCondDeadWithBlockCheck (int blockable);
620 void SetCondUnconsciousWithBlockCheck( int blockable );
613 621
614 inline bool IsRaceHuman() {return GetRace() == CHARACTER_RACE_HUMAN;} 622 inline bool IsRaceHuman() {return GetRace() == CHARACTER_RACE_HUMAN;}
615 inline bool IsRaceDwarf() {return GetRace() == CHARACTER_RACE_DWARF;} 623 inline bool IsRaceDwarf() {return GetRace() == CHARACTER_RACE_DWARF;}
616 inline bool IsRaceElf() {return GetRace() == CHARACTER_RACE_ELF;} 624 inline bool IsRaceElf() {return GetRace() == CHARACTER_RACE_ELF;}
617 inline bool IsRaceGoblin() {return GetRace() == CHARACTER_RACE_GOBLIN;} 625 inline bool IsRaceGoblin() {return GetRace() == CHARACTER_RACE_GOBLIN;}