annotate Player.h @ 17:3f3b61fd1c88

Слияние
author Lower
date Sat, 13 Oct 2012 20:31:30 +0600
parents 8b8875f5b359
children 509744251c8e
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2 #include "Items.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3 #include "Spells.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 /* 339 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 enum CHARACTER_RACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 CHARACTER_RACE_HUMAN = 0x0,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 CHARACTER_RACE_ELF = 0x1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 CHARACTER_RACE_GOBLIN = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 CHARACTER_RACE_DWARF = 0x3,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19 /* 332 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20 enum CHARACTER_ATTRIBUTE_TYPE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 CHARACTER_ATTRIBUTE_STRENGTH = 0x0,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 CHARACTER_ATTRIBUTE_INTELLIGENCE = 0x1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 CHARACTER_ATTRIBUTE_WILLPOWER = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 CHARACTER_ATTRIBUTE_ENDURANCE = 0x3,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 CHARACTER_ATTRIBUTE_ACCURACY = 0x4,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 CHARACTER_ATTRIBUTE_SPEED = 0x5,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 CHARACTER_ATTRIBUTE_LUCK = 0x6,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 CHARACTER_ATTRIBUTE_HEALTH = 0x7,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 CHARACTER_ATTRIBUTE_MANA = 0x8,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 CHARACTER_ATTRIBUTE_AC_BONUS = 0x9,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 CHARACTER_ATTRIBUTE_RESIST_FIRE = 0xA,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 CHARACTER_ATTRIBUTE_RESIST_AIR = 0xB,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 CHARACTER_ATTRIBUTE_RESIST_WATER = 0xC,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 CHARACTER_ATTRIBUTE_RESIST_EARTH = 0xD,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 CHARACTER_ATTRIBUTE_RESIST_MIND = 0xE,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 CHARACTER_ATTRIBUTE_RESIST_BODY = 0xF,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 CHARACTER_ATTRIBUTE_LEVEL = 0x18,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 CHARACTER_ATTRIBUTE_ATTACK = 0x19,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 CHARACTER_ATTRIBUTE_MELEE_DMG_BONUS = 0x1A,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 CHARACTER_ATTRIBUTE_MELEE_DMG_MIN = 0x1B,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 CHARACTER_ATTRIBUTE_MELEE_DMG_MAX = 0x1C,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 CHARACTER_ATTRIBUTE_RANGED_ATTACK = 0x1D,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 CHARACTER_ATTRIBUTE_RANGED_DAMAGE_BONUS = 0x1E,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 CHARACTER_ATTRIBUTE_RANGED_DAMAGE_MIN = 0x1F,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46 CHARACTER_ATTRIBUTE_RANGED_DAMAGE_MAX = 0x20,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49 /* 328 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50 enum PLAYER_SKILL_TYPE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 PLAYER_SKILL_STAFF = 0x0,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 PLAYER_SKILL_SWORD = 0x1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 PLAYER_SKILL_DAGGER = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 PLAYER_SKILL_AXE = 0x3,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 PLAYER_SKILL_SPEAR = 0x4,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 PLAYER_SKILL_BOW = 0x5,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 PLAYER_SKILL_MACE = 0x6,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 PLAYER_SKILL_BLASTER = 0x7,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 PLAYER_SKILL_SHIELD = 0x8,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61 PLAYER_SKILL_LEATHER = 0x9,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62 PLAYER_SKILL_CHAIN = 0xA,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 PLAYER_SKILL_PLATE = 0xB,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64 PLAYER_SKILL_FIRE = 0xC,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65 PLAYER_SKILL_AIR = 0xD,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66 PLAYER_SKILL_WATER = 0xE,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67 PLAYER_SKILL_EARTH = 0xF,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68 PLAYER_SKILL_SPIRIT = 0x10,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69 PLAYER_SKILL_MIND = 0x11,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70 PLAYER_SKILL_BODY = 0x12,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71 PLAYER_SKILL_LIGHT = 0x13,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72 PLAYER_SKILL_DARK = 0x14,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73 PLAYER_SKILL_ITEM_ID = 0x15,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74 PLAYER_SKILL_MERCHANT = 0x16,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75 PLAYER_SKILL_REPAIR = 0x17,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 PLAYER_SKILL_BODYBUILDING = 0x18,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77 PLAYER_SKILL_MEDITATION = 0x19,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 PLAYER_SKILL_PERCEPTION = 0x1A,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79 PLAYER_SKILL_DIPLOMACY = 0x1B,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80 PLAYER_SKILL_TIEVERY = 0x1C,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81 PLAYER_SKILL_TRAP_DISARM = 0x1D,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82 PLAYER_SKILL_DODGE = 0x1E,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
83 PLAYER_SKILL_UNARMED = 0x1F,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84 PLAYER_SKILL_MONSTER_ID = 0x20,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85 PLAYER_SKILL_ARMSMASTER = 0x21,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86 PLAYER_SKILL_STEALING = 0x22,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87 PLAYER_SKILL_ALCHEMY = 0x23,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88 PLAYER_SKILL_LEARNING = 0x24,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91 /* 329 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92 enum PLAYER_CLASS_TYPE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94 PLAYER_CLASS_KNIGHT = 0x0,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
95 PLAYER_CLASS_THEIF = 0x4,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96 PLAYER_CLASS_CLERIC = 0x18,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97 PLAYER_CLASS_SORCERER = 0x20,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
98 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
103 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
104 struct LloydBeacon
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106 unsigned __int64 uBeaconTime;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107 int field_8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
108 int field_C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
109 int field_10;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 int field_14;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 int field_18;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
112 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
113 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
114
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
115
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
116
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
117 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
118 struct PlayerSpellbook
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
119 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
120 unsigned __int8 bIsSpellbookAvailable;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
121 char bIsSpellAvailable[10];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
122 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
123 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
124
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
125
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
126
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
127 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
128 union PlayerEquipment
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
129 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
130 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
131 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
132 struct
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
133 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
134 unsigned int uOffHand;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
135 unsigned int uMainHand;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
136 unsigned int uBow;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
137 unsigned int uBody;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
138 unsigned int uHelm;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
139 unsigned int uBelt;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
140 unsigned int uCloak;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
141 unsigned int field_1C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
142 unsigned int field_20;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
143 unsigned int field_24;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
144 unsigned int field_28;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
145 unsigned int field_2C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
146 unsigned int field_30;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
147 unsigned int field_34;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
148 unsigned int field_38;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
149 unsigned int field_3C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
150 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
151 unsigned int pIndices[16];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
152 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
153 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
154 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
155
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
156
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
157
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
158 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
159 struct Player
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
160 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
161 Player();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
162
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
163 void SetVariable(enum VariableType var, signed int a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
164 void AddVariable(enum VariableType var, signed int val);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
165 void SubtractVariable(enum VariableType var, void *a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
166 char CompareVariable(enum VariableType var, signed int a1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
167 void UseItem_DrinkPotion_etc(signed int a2, int a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
168 bool AddItem(struct ItemGen *pItem);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
169 int GetBaseStrength();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
170 int GetBaseIntelligence();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
171 int GetBaseWillpower();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
172 int GetBaseEndurance();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
173 int GetBaseAccuracy();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
174 int GetBaseSpeed();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
175 int GetBaseLuck();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
176 int GetBaseLevel();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
177 int GetActualLevel();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
178 int GetActualMight();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
179 int GetActualIntelligence();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
180 int GetActualWillpower();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
181 int GetActualEndurance();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
182 int GetActualAccuracy();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
183 int GetActualSpeed();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
184 int GetActualLuck();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
185 int GetActualAttack(int a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
186 int GetMeleeDamageMinimal();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
187 int GetMeleeDamageMaximal();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
188 int CalculateMeleeDamageTo(int a2, int a3, unsigned int uTargetActorID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
189 int GetRangedAttack();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
190 int GetRangedDamageMin();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
191 int GetRangedDamageMax();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
192 bool CalculateRangedDamageTo(int a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
193 char *GetMeleeDamageString();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
194 char *GetRangedDamageString();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
195 bool CanTrainToNextLevel();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
196 unsigned int GetExperienceDisplayColor();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
197 int CalculateIncommingDamage(int resistance, signed int type);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
198 int GetEquippedItemEquipType(unsigned int uEquipSlot);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
199 int GetEquippedItemSkillType(enum ITEM_EQUIP_TYPE uEquipSlot);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
200 bool IsUnarmed();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
201 bool HasItemEquipped(enum ITEM_EQUIP_TYPE uEquipIndex);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
202 int HasEnchantedItemEquipped(int uEnchantment);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
203 bool WearsItem(int a1, signed int a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
204 bool StealFromShop(struct ItemGen *a2, int a3, int a4, int a5, int *a6);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
205 int StealFromActor(unsigned int uActorID, int _steal_perm, int reputation);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
206 void Heal(int amount);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
207 int ReceiveDamage(signed int type, int resistance);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
208 int _48DCF6(int a2, struct Actor *pActor);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
209 unsigned int GetSpellSchool(unsigned int uSpellID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
210 int GetAttackRecoveryTime(int a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
211 int GetMaxHealth();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
212 int GetMaxMana();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
213 int GetBaseAC();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
214 int GetActualAC();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
215 unsigned int GetBaseAge();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
216 unsigned int GetActualAge();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
217 int GetBaseResistance(enum CHARACTER_ATTRIBUTE_TYPE a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
218 int GetActualResistance(enum CHARACTER_ATTRIBUTE_TYPE a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
219 void SetRecoveryTime(signed int sRecoveryTime);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
220 void RandomizeName();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
221 unsigned int GetMajorConditionrIdx();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
222 int _48EA1B_get_static_effect(int a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
223 int _48EA46_calc_special_bonus_by_items(int a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
224 int GetItemsBonus(enum CHARACTER_ATTRIBUTE_TYPE attr, int a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
225 int GetMagicalBonus(enum CHARACTER_ATTRIBUTE_TYPE a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
226 char GetActualSkillLevel(enum PLAYER_SKILL_TYPE uSkillType);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
227 int GetSkillBonus(enum CHARACTER_ATTRIBUTE_TYPE a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
228 enum CHARACTER_RACE GetRace();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
229 int GetSexByVoice();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
230 void SetInitialStats();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
231 int SetSexByVoice();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
232 void Reset(unsigned __int8 uClass);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
233 enum PLAYER_SKILL_TYPE GetSkillIdxByOrder(signed int order);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
234 unsigned __int16 DecreaseAttribute(int eAttribute);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
235 int IncreaseAttribute(int eAttribute);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
236 void Player::Zero();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
237 __int16 GetStatColor(unsigned int uStat);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
238 bool DiscardConditionIfLastsLongerThan(unsigned int uCondition, unsigned __int64 uTime);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
239 int _490EEE(ItemGen *pItem, int a3, int a4, int a5);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
240 int GetBodybuilding();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
241 int GetMediatation();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
242 int CanIdentify(ItemGen *pItem);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
243 int CanRepair(ItemGen *);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
244 int GetMerchant();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
245 int GetPerception();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
246 int GetDisarmTrap();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
247 char GetLearningPercent();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
248 bool CanFitItem(unsigned int uSlot, unsigned int uItemID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
249 unsigned int FindFreeInventorySlot();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
250 int CreateItemInInventory(unsigned int uSlot, unsigned int uItemID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
251 int HasSkill(unsigned int uSkillType);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
252 int WearItem(unsigned int uItemID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
253 int AddItem(unsigned int uSlot, unsigned int uItemID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
254 int AddItem2(unsigned int uSlot, ItemGen *Src);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
255 int CreateItemInInventory2(unsigned int uSlot, ItemGen *Src);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
256 bool _49298B(ItemGen *a2, int a3, int a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
257 unsigned int RemoveItemAtInventoryIndex(unsigned int uSlot);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
258 bool CanAct();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
259 bool CanSteal();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
260 bool CanEquip_RaceAndAlignmentCheck(unsigned int uItemID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
261 int SetCondition(unsigned int uConditionIdx, int a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
262 int _49327B(unsigned int uClass, int a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
263 __int16 PlaySound(int a2, int a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
264 __int16 PlayEmotion(int a2, int a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
265 char _4160CA(int a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
266 unsigned int GetItemIDAtInventoryIndex(int *a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
267 int _4B6FF9();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
268 int _4B824B(float a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
269 int _4B8265(int a2, float a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
270 int _4B8233(int a2, float a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
271 int _4B8213(int a2, float a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
272 int _4B81C3(int a2, float a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
273 int _4B8179(float a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
274 int _4B8142(int a2, float a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
275 int _4B8102(int a2, float a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
276 int _4B807C(float a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
277 int _4B8040_condition_time(unsigned int uCondition);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
278 bool _43EEF3();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
279 void _4BE2DD(unsigned int a2, int a3, int _2devent_idx);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
280 bool Recover(signed int a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
281 bool CanCastSpell(unsigned int uRequiredMana);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
282
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
283
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
284
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
285 __int64 pConditions[20];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
286 unsigned __int64 uExperience;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
287 char pName[16];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
288 unsigned __int8 uSex;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
289 unsigned __int8 uClass;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
290 unsigned __int8 uFace;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
291 char field_BB;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
292 unsigned __int16 uMight;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
293 unsigned __int16 uMightBonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
294 unsigned __int16 uIntelligence;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
295 unsigned __int16 uIntelligenceBonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
296 unsigned __int16 uWillpower;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
297 unsigned __int16 uWillpowerBonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
298 unsigned __int16 uEndurance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
299 unsigned __int16 uEnduranceBonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
300 unsigned __int16 uSpeed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
301 unsigned __int16 uSpeedBonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
302 unsigned __int16 uAccuracy;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
303 unsigned __int16 uAccuracyBonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
304 unsigned __int16 uLuck;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
305 unsigned __int16 uLuckBonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
306 __int16 sACModifier;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
307 unsigned __int16 uLevel;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
308 __int16 sLevelModifier;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
309 __int16 sAgeModifier;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
310 int field_E0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
311 int field_E4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
312 int field_E8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
313 int field_EC;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
314 int field_F0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
315 int field_F4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
316 int field_F8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
317 int field_FC;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
318 int field_100;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
319 int field_104;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
320 unsigned __int16 pActiveSkills[37];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
321 char field_152[64];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
322 PlayerSpellbook pFileSpellbook;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
323 PlayerSpellbook pAirSpellbook;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
324 PlayerSpellbook pWaterSpellbook;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
325 PlayerSpellbook pEarthSpellbook;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
326 PlayerSpellbook pSpiritSpellbook;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
327 PlayerSpellbook pMindSpellbook;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
328 PlayerSpellbook pBodySpellbook;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
329 PlayerSpellbook pLightSpellbook;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
330 PlayerSpellbook pDarkSpellbook;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
331 char field_1F5[31];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
332 ItemGen pInventoryItems[126];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
333 ItemGen pEquippedItems[12];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
334 int pInventoryIndices[126];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
335 __int16 sResFireBase;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
336 __int16 sResAirBase;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
337 __int16 sResWaterBase;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
338 __int16 sResEarthBase;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
339 __int16 field_177C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
340 __int16 sResMagicBase;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
341 __int16 sResSpiritBase;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
342 __int16 sResMindBase;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
343 __int16 sResBodyBase;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
344 __int16 sResLightBase;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
345 __int16 sResDarkBase;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
346 __int16 sResFireBonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
347 __int16 sResAirBonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
348 __int16 sResWaterBonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
349 __int16 sResEarthBonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
350 __int16 field_1792;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
351 __int16 sResMagicBonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
352 __int16 sResSpiritBonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
353 __int16 sResMindBonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
354 __int16 sResBodyBonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
355 __int16 sResLightBonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
356 __int16 sResDarkBonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
357 SpellBuff pPlayerBuffs[24];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
358 unsigned int uVoiceID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
359 int field_1924;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
360 int field_1928;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
361 int field_192C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
362 int field_1930;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
363 unsigned __int16 uTimeToRecovery;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
364 char field_1936;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
365 char field_1937;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
366 unsigned int uSkillPoints;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
367 int sHealth;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
368 int sMana;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
369 unsigned int uBirthYear;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
370 PlayerEquipment pEquipment;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
371 int field_1988[49];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
372 char field_1A4C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
373 char field_1A4D;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
374 char field_1A4E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
375 unsigned __int8 uQuickSpell;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
376 char field_1A50[64];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
377 char _some_attack_bonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
378 char field_1A91;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
379 char _melee_dmg_bonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
380 char field_1A93;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
381 char _ranged_atk_bonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
382 char field_1A95;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
383 char _ranged_dmg_bonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
384 char field_1A97;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
385 char uFullHealthBonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
386 char _health_related;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
387 char uFullManaBonus;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
388 char _mana_related;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
389 unsigned __int16 uExpressionID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
390 unsigned __int16 uExpressionTimePassed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
391 unsigned __int16 uExpressionTimeLength;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
392 __int16 field_1AA2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
393 int field_1AA4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
394 int field_1AA8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
395 LloydBeacon pInstalledBeacons[5];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
396 char uNumDivineInterventionCastsThisDay;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
397 char uNumArmageddonCasts;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
398 char uNumFireSpikeCasts;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
399 char field_1B3B;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
400 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
401 #pragma pack(pop)