Mercurial > mm7
annotate Party.h @ 1036:7f8be9f9769e
player recieve damage
author | Gloval |
---|---|
date | Wed, 22 May 2013 22:25:44 +0400 |
parents | a6ef7125f6e4 |
children | 306ec23b37df |
rev | line source |
---|---|
0 | 1 #pragma once |
2 #include "Player.h" | |
3 #include "NPC.h" | |
4 #include "Spells.h" | |
5 #include "VectorTypes.h" | |
6 | |
7 | |
8 | |
9 | |
10 | |
710 | 11 enum PARTY_QUEST_BITS: unsigned __int32 |
12 { | |
778 | 13 PARTY_QUEST_EVENMORN_MAP_FOUND = 64, |
981 | 14 PARTY_QUEST_FINISHED_EMERALD_ISLE = 136, |
710 | 15 PARTY_QUEST_FOUNTAIN_HARMONDALE = 206, |
16 PARTY_QUEST_FOUNTAIN_NIGHON = 207, | |
17 PARTY_QUEST_FOUNTAIN_PIERPONT = 208, | |
18 PARTY_QUEST_FOUNTAIN_CELESTIA = 209, | |
19 PARTY_QUEST_FOUNTAIN_THE_PIT = 210, | |
20 PARTY_QUEST_FOUNTAIN_EVENMORN_ISLE = 211 | |
21 }; | |
0 | 22 |
23 | |
24 | |
25 | |
26 /* 355 */ | |
141 | 27 enum PARTY_FLAGS_1: __int32 |
28 { | |
569 | 29 PARTY_FLAGS_1_FALLING = 0x0008, |
390 | 30 PARTY_FLAGS_1_ALERT_RED = 0x0010, |
31 PARTY_FLAGS_1_ALERT_YELLOW = 0x0020, | |
569 | 32 PARTY_FLAGS_1_STANDING_ON_WATER = 0x0080, |
390 | 33 PARTY_FLAGS_1_LANDING = 0x0100, |
816 | 34 PARTY_FLAGS_1_BURNING = 0x200 |
141 | 35 }; |
36 enum PARTY_FLAGS_2: __int32 | |
0 | 37 { |
38 PARTY_FLAGS_2_RUNNING = 0x2, | |
39 }; | |
40 | |
41 /* 347 */ | |
42 enum PARTY_BUFF_INDEX | |
43 { | |
488 | 44 PARTY_BUFF_RESIST_AIR = 0, |
45 PARTY_BUFF_RESIST_BODY = 1, | |
46 PARTY_BUFF_DAY_OF_GODS = 2, | |
47 PARTY_BUFF_DETECT_LIFE = 3, | |
48 PARTY_BUFF_RESIST_EARTH = 4, | |
49 PARTY_BUFF_FEATHER_FALL = 5, | |
50 PARTY_BUFF_RESIST_FIRE = 6, | |
51 PARTY_BUFF_FLY = 7, | |
52 PARTY_BUFF_HASTE = 8, | |
53 PARTY_BUFF_HEROISM = 9, | |
54 PARTY_BUFF_IMMOLATION = 10, | |
271 | 55 PARTY_BUFF_INVISIBILITY = 11, |
488 | 56 PARTY_BUFF_RESIST_MIND = 12, |
57 PARTY_BUFF_PROTECTION_FROM_MAGIC = 13, | |
58 PARTY_BUFF_SHIELD = 14, | |
59 PARTY_BUFF_STONE_SKIN = 15, | |
60 PARTY_BUFF_TORCHLIGHT = 16, | |
61 PARTY_BUFF_RESIST_WATER = 17, | |
62 PARTY_BUFF_WATER_WALK = 18, | |
63 PARTY_BUFF_WIZARD_EYE = 19, | |
0 | 64 }; |
65 | |
66 | |
67 | |
68 /* 300 */ | |
69 enum PartyAction: unsigned __int32 | |
70 { | |
71 PARTY_INVALID = 0, | |
72 PARTY_TurnLeft = 0x1, | |
73 PARTY_TurnRight = 0x2, | |
74 PARTY_StrafeLeft = 0x3, | |
75 PARTY_StrafeRight = 0x4, | |
76 PARTY_WalkForward = 0x5, | |
77 PARTY_WalkBackward = 0x6, | |
78 PARTY_LookUp = 0x7, | |
79 PARTY_LookDown = 0x8, | |
80 PARTY_CenterView = 0x9, | |
81 PARTY_unkA = 0xA, | |
82 PARTY_unkB = 0xB, | |
83 PARTY_Jump = 0xC, | |
84 PARTY_FlyUp = 0xD, | |
85 PARTY_FlyDown = 0xE, | |
86 PARTY_Land = 0xF, | |
87 PARTY_RunForward = 0x10, | |
88 PARTY_RunBackward = 0x11, | |
89 PARTY_FastTurnLeft = 0x12, | |
90 PARTY_FastTurnRight = 0x13, | |
91 | |
92 PARTY_dword = 0xFFFFFFFF | |
93 }; | |
94 | |
95 | |
96 | |
97 /* 135 */ | |
98 #pragma pack(push, 1) | |
99 struct ActionQueue | |
100 { | |
101 void Add(PartyAction action); | |
783 | 102 void Reset(); |
0 | 103 PartyAction Next(); |
104 | |
105 unsigned int uNumActions; | |
106 PartyAction pActions[30]; | |
107 }; | |
108 #pragma pack(pop) | |
109 | |
110 | |
111 | |
112 | |
113 | |
373 | 114 enum PartyAlignment: unsigned __int32 |
115 { | |
116 PartyAlignment_Good = 0, | |
117 PartyAlignment_Neutral = 1, | |
118 PartyAlignment_Evil = 2 | |
119 }; | |
0 | 120 |
121 | |
122 | |
123 | |
124 | |
125 /* 208 */ | |
126 #pragma pack(push, 1) | |
127 struct Party_stru0 | |
128 { | |
129 int field_0[20]; | |
471
c43f156a95c9
ArmorShopDialog crash fixed. All shops show its items
Gloval
parents:
470
diff
changeset
|
130 // int field_50[170]; |
c43f156a95c9
ArmorShopDialog crash fixed. All shops show its items
Gloval
parents:
470
diff
changeset
|
131 __int64 field_50[85]; |
484 | 132 __int64 _shop_ban_times[53]; |
133 int field_4A0[20]; | |
0 | 134 int field_4F0[38]; |
135 char field_588[2]; | |
484 | 136 __int64 _s_times[21]; //5d8 440h+8*51 |
527 | 137 __int64 field_632[8]; |
138 char field_672[6]; | |
484 | 139 // char pIsArtifactFound[8]; |
0 | 140 }; |
141 #pragma pack(pop) | |
142 | |
143 /* 207 */ | |
144 #pragma pack(push, 1) | |
145 struct Party | |
146 { | |
147 Party(): | |
148 uTimePlayed(0) | |
149 { | |
783 | 150 Zero(); |
0 | 151 } |
152 | |
783 | 153 void Zero(); |
130 | 154 void UpdatePlayersAndHirelingsEmotions(); |
0 | 155 void RestAndHeal(); |
156 unsigned int GetPartyFame(); | |
157 void CreateDefaultParty(char bGiveItems); | |
158 int Reset(); | |
159 void ResetPosMiscAndSpellBuffs(); | |
160 bool HasItem(unsigned int uItemID); | |
161 void SetHoldingItem(ItemGen *pItem); | |
162 int GetNextActiveCharacter(); | |
163 bool _497FC5_check_party_perception_against_level(); | |
164 bool AddItem(ItemGen *pItem); | |
165 void Yell(); | |
166 | |
167 static void SetGold(unsigned int uNumGold); | |
168 static void TakeGold(unsigned int uNumGold); | |
593 | 169 static void SetFood(unsigned int uNumFood); |
0 | 170 static void TakeFood(unsigned int uNumFood); |
592 | 171 static void GiveFood(unsigned int _this); |
0 | 172 |
173 inline bool WizardEyeActive() {return pPartyBuffs[PARTY_BUFF_WIZARD_EYE].uExpireTime > 0;} | |
174 inline int WizardEyeSkillLevel() {return pPartyBuffs[PARTY_BUFF_WIZARD_EYE].uSkill;} | |
175 inline bool TorchlightActive() {return pPartyBuffs[PARTY_BUFF_TORCHLIGHT].uExpireTime > 0;} | |
176 inline bool FlyActive() {return pPartyBuffs[PARTY_BUFF_FLY].uExpireTime > 0;} | |
177 inline bool WaterWalkActive() {return pPartyBuffs[PARTY_BUFF_WATER_WALK].uExpireTime > 0;} | |
178 inline bool ImmolationActive() {return pPartyBuffs[PARTY_BUFF_IMMOLATION].uExpireTime > 0;} | |
179 inline bool ImmolationSkillLevel() {return pPartyBuffs[PARTY_BUFF_IMMOLATION].uSkill;} | |
180 inline bool FeatherFallActive() {return pPartyBuffs[PARTY_BUFF_FEATHER_FALL].uExpireTime > 0;} | |
141 | 181 inline bool Invisible() {return pPartyBuffs[PARTY_BUFF_INVISIBILITY].uExpireTime > 0;} |
0 | 182 |
390 | 183 inline bool GetRedAlert() {return uFlags & PARTY_FLAGS_1_ALERT_RED;} |
184 inline void SetRedAlert() {uFlags |= PARTY_FLAGS_1_ALERT_RED;} | |
185 inline bool GetYellowAlert() {return uFlags & PARTY_FLAGS_1_ALERT_YELLOW;} | |
186 inline void SetYellowAlert() {uFlags |= PARTY_FLAGS_1_ALERT_YELLOW;} | |
187 | |
0 | 188 |
189 int field_0; | |
190 unsigned int uPartyHeight; | |
191 unsigned int uDefaultPartyHeight; | |
192 int sEyelevel; | |
193 unsigned int uDefaultEyelevel; | |
194 int field_14; | |
120 | 195 int y_rotation_granularity; |
0 | 196 unsigned int uWalkSpeed; |
122 | 197 int y_rotation_speed; // deg/s |
0 | 198 int field_24; |
199 int field_28; | |
200 unsigned __int64 uTimePlayed; | |
201 __int64 uLastRegenerationTime; | |
202 Party_stru0 field_3C; | |
203 Vec3_int_ vPosition; | |
204 int sRotationY; | |
205 int sRotationX; | |
206 Vec3_int_ vPrevPosition; | |
207 int sPrevRotationY; | |
208 int sPrevRotationX; | |
209 int sPrevEyelevel; | |
210 int field_6E0; | |
211 int field_6E4; | |
212 int uFallSpeed; | |
213 int field_6EC; | |
214 int field_6F0; | |
831 | 215 int floor_face_pid; // face we are standing at |
216 int walk_sound_timer; | |
0 | 217 int field_6FC; |
218 int uFallStartY; | |
219 unsigned int bFlying; | |
220 char field_708; | |
221 char field_709; | |
222 char field_70A; | |
223 char field_70B; | |
224 unsigned int uCurrentYear; | |
225 unsigned int uCurrentMonth; | |
226 unsigned int uCurrentMonthWeek; | |
227 unsigned int uDaysPlayed; | |
228 unsigned int uCurrentHour; | |
229 unsigned int uCurrentMinute; | |
230 unsigned int uCurrentTimeSecond; | |
231 unsigned int uNumFoodRations; | |
232 int field_72C; | |
233 int field_730; | |
234 unsigned int uNumGold; | |
235 unsigned int uNumGoldInBank; | |
236 unsigned int uNumDeaths; | |
237 int field_740; | |
238 int uNumPrisonTerms; | |
239 unsigned int uNumBountiesCollected; | |
240 int field_74C; | |
241 __int16 field_750[5]; | |
242 __int16 field_75A[5]; | |
766 | 243 unsigned char days_played_without_rest; |
484 | 244 unsigned __int8 _quest_bits[64]; |
0 | 245 unsigned __int8 pArcomageWins[16]; |
246 char field_7B5_in_arena_quest; | |
247 char uNumArenaPageWins; | |
248 char uNumArenaSquireWins; | |
249 char uNumArenaKnightWins; | |
250 char uNumArenaLordWins; | |
492 | 251 char pIsArtifactFound[29]; //7ba |
252 char field_7d7[39]; | |
0 | 253 unsigned char _autonote_bits[12]; |
254 char field_80A[74]; | |
255 char field_854[32]; | |
949 | 256 int uNumArcomageWins; |
257 int uNumArcomageLoses; | |
0 | 258 unsigned int bTurnBasedModeOn; |
259 int field_880; | |
260 int uFlags2; | |
373 | 261 PartyAlignment alignment; |
0 | 262 SpellBuff pPartyBuffs[20]; |
263 Player pPlayers[4]; | |
264 NPCData pHirelings[2]; | |
265 ItemGen pPickedItem; | |
266 unsigned int uFlags; | |
463 | 267 ItemGen StandartItemsInShops[53][12]; |
470 | 268 ItemGen SpecialItemsInShops[53][12]; //D0EC |
496 | 269 ItemGen SpellBooksInGuilds[32][12]; |
527 | 270 char field_1605C[24]; |
0 | 271 char pHireling1Name[100]; |
272 char pHireling2Name[100]; | |
349 | 273 int armageddon_timer; |
0 | 274 int field_16140; |
275 int pTurnBasedPlayerRecoveryTimes[4]; | |
463 | 276 int InTheShopFlags[53]; |
0 | 277 int uFine; |
278 float flt_TorchlightColorR; | |
279 float flt_TorchlightColorG; | |
280 float flt_TorchlightColorB; | |
281 }; | |
282 #pragma pack(pop) | |
283 | |
284 | |
285 | |
286 extern Party *pParty; // idb | |
287 | |
288 | |
66 | 289 extern struct ActionQueue *pPartyActionQueue; |
290 |