World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Party.h
См. документацию.
1 #pragma once
2 
3 #include <array>
4 #include <cstdint>
5 
6 #include "Engine/Time.h"
7 
8 #include "Engine/Objects/NPC.h"
10 
11 #define PARTY_AUTONOTES_BIT__EMERALD_FIRE_FOUNTAIN 2
12 
20 
22 
24 
26 
28 
43 
45 
52 };
53 
54 /* 355 */
64 };
67 };
68 
69 /* 347 */
91 };
92 
93 /* 300 */
105  PARTY_unkA = 0xA,
106  PARTY_unkB = 0xB,
107  PARTY_Jump = 0xC,
108  PARTY_FlyUp = 0xD,
110  PARTY_Land = 0xF,
115 
116  PARTY_dword = 0xFFFFFFFF
117 };
118 
119 /* 135 */
120 #pragma pack(push, 1)
121 struct ActionQueue {
122  inline ActionQueue() : uNumActions(0) {}
123 
124  void Add(PartyAction action);
125  void Reset();
126  PartyAction Next();
127 
128  unsigned int uNumActions;
130 };
131 #pragma pack(pop)
132 
133 typedef enum class PartyAlignment : uint32_t {
138 
139 /* 208 */
140 #pragma pack(push, 1)
142  std::array<GameTime, 10> bountyHunting_next_generation_time;
143  std::array<GameTime, 85> Shops_next_generation_time; // field_50
144  std::array<GameTime, 53> _shop_ban_times;
145  std::array<GameTime, 10> CounterEventValues; // (0xACD314h in Silvo's binary)
146  std::array<GameTime, 29> HistoryEventTimes; // (0xACD364h in Silvo's binary)
147  std::array<GameTime, 20> _s_times; // 5d8 440h+8*51 //(0xACD44Ch in Silvo's binary)
148 };
149 #pragma pack(pop)
150 
151 struct Party {
153  Zero();
154  }
155 
156  void Zero();
158  void RestAndHeal();
159  unsigned int GetPartyFame();
160  void CreateDefaultParty(bool bDebugGiveItems = false);
161  void Reset();
163  bool HasItem(unsigned int uItemID);
164  void SetHoldingItem(ItemGen *pItem);
165  int GetFirstCanAct(); // added to fix some nzi access problems
168  bool AddItemToParty(ItemGen *pItem);
169  void Yell();
170  void CountHirelings();
171 
172  void GivePartyExp(unsigned int pEXPNum);
173  int GetPartyReputation();
174 
175  void PartyFindsGold(
176  unsigned int uNumGold,
177  int _1_dont_share_with_followers___2_the_same_but_without_a_message__else_normal);
179 
180  int GetGold() const;
181  static void SetGold(int amount);
182  static void AddGold(int amount);
183  static void TakeGold(int amount);
184 
185  int GetFood() const;
186  static void SetFood(int amount);
187  static void TakeFood(int amount);
188  static void GiveFood(int amount);
189 
190  static void Sleep8Hours();
191 
192 
193  inline bool WizardEyeActive() {
194  return bool(pPartyBuffs[PARTY_BUFF_WIZARD_EYE].expire_time);
195  }
196  inline int WizardEyeSkillLevel() {
197  return pPartyBuffs[PARTY_BUFF_WIZARD_EYE].uSkill;
198  }
199  inline bool TorchlightActive() {
200  return bool(pPartyBuffs[PARTY_BUFF_TORCHLIGHT].expire_time);
201  }
202  inline bool FlyActive() {
203  return bool(pPartyBuffs[PARTY_BUFF_FLY].expire_time);
204  }
205  inline bool WaterWalkActive() {
206  return bool(pPartyBuffs[PARTY_BUFF_WATER_WALK].expire_time);
207  }
208  inline bool ImmolationActive() {
209  return bool(pPartyBuffs[PARTY_BUFF_IMMOLATION].expire_time);
210  }
211  inline int ImmolationSkillLevel() {
212  return pPartyBuffs[PARTY_BUFF_IMMOLATION].uSkill;
213  }
214  inline bool FeatherFallActive() {
215  return bool(pPartyBuffs[PARTY_BUFF_FEATHER_FALL].expire_time);
216  }
217  inline bool Invisible() {
218  return bool(pPartyBuffs[PARTY_BUFF_INVISIBILITY].expire_time);
219  }
220 
221  inline bool GetRedAlert() {
222  return (uFlags & PARTY_FLAGS_1_ALERT_RED) != 0;
223  }
225  inline bool GetYellowAlert() {
226  return (uFlags & PARTY_FLAGS_1_ALERT_YELLOW) != 0;
227  }
229 
230  GameTime &GetPlayingTime() { return this->playing_time; }
231 
232  bool IsPartyEvil();
233  bool IsPartyGood();
234  int _46A89E_immolation_effect(int *affected, int affectedArrSize,
235  int effectRange);
236  int field_0;
237  unsigned int uPartyHeight;
238  unsigned int uDefaultPartyHeight;
240  unsigned int uDefaultEyelevel;
243  unsigned int uWalkSpeed;
244  int y_rotation_speed; // deg/s
245  int field_24;
246  int field_28;
247  GameTime playing_time; // unsigned __int64 uTimePlayed;
250  Vec3_int_ vPosition;
253  Vec3_int_ vPrevPosition;
262  int floor_face_pid; // face we are standing at
266  unsigned int bFlying;
267  char field_708;
268  unsigned __int8 hirelingScrollPosition;
269  char cNonHireFollowers; // number of non hireling party guests
270  char field_70B;
271  unsigned int uCurrentYear;
272  unsigned int uCurrentMonth;
273  unsigned int uCurrentMonthWeek;
274  unsigned int uCurrentDayOfMonth; // unsigned int uDaysPlayed;
275  unsigned int uCurrentHour;
276  unsigned int uCurrentMinute;
277  unsigned int uCurrentTimeSecond;
278  unsigned int uNumFoodRations;
281  unsigned int uNumGold;
282  unsigned int uNumGoldInBank;
283  unsigned int uNumDeaths;
286  unsigned int uNumBountiesCollected;
288  std::array<__int16, 5> monster_id_for_hunting;
289  std::array<__int16, 5> monster_for_hunting_killed;
291  unsigned __int8 _quest_bits[64];
292  std::array<unsigned __int8, 16> pArcomageWins;
298  std::array<char, 29> pIsArtifactFound; // 7ba
299  std::array<char, 39> field_7d7;
300  unsigned char _autonote_bits[26];
301  std::array<char, 60> field_818;
302  std::array<char, 32> field_854;
307  int uFlags2;
309  std::array<SpellBuff, 20> pPartyBuffs;
310  std::array<Player, 4> pPlayers;
311  std::array<NPCData, 2> pHirelings;
313  unsigned int uFlags;
314  std::array<std::array<ItemGen, 12>, 53> StandartItemsInShops;
315  std::array<std::array<ItemGen, 12>, 53> SpecialItemsInShops; // D0EC
316  std::array<std::array<ItemGen, 12>, 32> SpellBooksInGuilds;
317  std::array<char, 24> field_1605C;
318  char pHireling1Name[100];
319  char pHireling2Name[100];
322  std::array<int, 4> pTurnBasedPlayerRecoveryTimes;
323  std::array<int, 53> InTheShopFlags;
324  int uFine;
329 };
330 
331 extern Party *pParty; // idb
332 
333 extern struct ActionQueue *pPartyActionQueue;
334 
336 void Rest(unsigned int uHoursToSleep);
337 void RestAndHeal(int uNumMinutes); // idb
338 int GetTravelTime();
339 
340 bool _449B57_test_bit(uint8_t *a1, int16_t a2);
341 void _449B7E_toggle_bit(unsigned char *pArray, int16_t a2, uint16_t bToggle); // idb
Party::pPickedItem
ItemGen pPickedItem
Definition: Party.h:312
uint16_t
unsigned __int16 uint16_t
Definition: SDL_config.h:37
PARTY_FLAGS_1_FALLING
@ PARTY_FLAGS_1_FALLING
Definition: Party.h:58
Party::uCurrentTimeSecond
unsigned int uCurrentTimeSecond
Definition: Party.h:277
Party::Zero
void Zero()
Definition: Party.cpp:72
PartyAlignment
PartyAlignment
Definition: Party.h:133
PartyAlignment::PartyAlignment_Good
@ PartyAlignment_Good
Party::Reset
void Reset()
Definition: Party.cpp:507
Party::vPosition
Vec3_int_ vPosition
Definition: Party.h:250
Party::ResetPosMiscAndSpellBuffs
void ResetPosMiscAndSpellBuffs()
Definition: Party.cpp:627
PARTY_BUFF_DAY_OF_GODS
@ PARTY_BUFF_DAY_OF_GODS
Definition: Party.h:73
Party::uNumBountiesCollected
unsigned int uNumBountiesCollected
Definition: Party.h:286
PARTY_BUFF_SHIELD
@ PARTY_BUFF_SHIELD
Definition: Party.h:85
PARTY_QUEST_OBELISK_CELESTE
@ PARTY_QUEST_OBELISK_CELESTE
Definition: Party.h:34
PARTY_QUEST_FOUNTAIN_NIGHON
@ PARTY_QUEST_FOUNTAIN_NIGHON
Definition: Party.h:47
ActionQueue::pActions
PartyAction pActions[30]
Definition: Party.h:129
Party::y_rotation_granularity
int y_rotation_granularity
Definition: Party.h:242
Party::uFallSpeed
int uFallSpeed
Definition: Party.h:259
Party::TakeFood
static void TakeFood(int amount)
Definition: Party.cpp:245
int16_t
signed __int16 int16_t
Definition: SDL_config.h:36
PartyAlignment::PartyAlignment_Neutral
@ PartyAlignment_Neutral
Party::field_24
int field_24
Definition: Party.h:245
Party::y_rotation_speed
int y_rotation_speed
Definition: Party.h:244
PARTY_FLAGS_1_ALERT_RED
@ PARTY_FLAGS_1_ALERT_RED
Definition: Party.h:59
Party::uCurrentMonth
unsigned int uCurrentMonth
Definition: Party.h:272
Party::GetPlayingTime
GameTime & GetPlayingTime()
Definition: Party.h:230
PARTY_QUEST_EMERALD_PLATE_ACTIVE
@ PARTY_QUEST_EMERALD_PLATE_ACTIVE
Definition: Party.h:17
PARTY_StrafeLeft
@ PARTY_StrafeLeft
Definition: Party.h:98
Party::pIsArtifactFound
std::array< char, 29 > pIsArtifactFound
Definition: Party.h:298
Party::uCurrentMinute
unsigned int uCurrentMinute
Definition: Party.h:276
Party::field_880
int field_880
Definition: Party.h:306
PARTY_LookDown
@ PARTY_LookDown
Definition: Party.h:103
Party
Definition: Party.h:151
PARTY_FLAGS_1_BURNING
@ PARTY_FLAGS_1_BURNING
Definition: Party.h:63
PARTY_FLAGS_2
PARTY_FLAGS_2
Definition: Party.h:65
PARTY_BUFF_PROTECTION_FROM_MAGIC
@ PARTY_BUFF_PROTECTION_FROM_MAGIC
Definition: Party.h:84
Party::SetFood
static void SetFood(int amount)
Definition: Party.cpp:239
Party::GetNextActiveCharacter
int GetNextActiveCharacter()
Definition: Party.cpp:166
PARTY_BUFF_IMMOLATION
@ PARTY_BUFF_IMMOLATION
Definition: Party.h:81
Party::sPrevRotationX
int sPrevRotationX
Definition: Party.h:255
Party::uFine
int uFine
Definition: Party.h:324
PARTY_QUEST_EMERALD_MARGARETH_OFF
@ PARTY_QUEST_EMERALD_MARGARETH_OFF
Definition: Party.h:21
GetTravelTime
int GetTravelTime()
Definition: Party.cpp:1171
Party::sRotationX
int sRotationX
Definition: Party.h:252
Party::SetYellowAlert
void SetYellowAlert()
Definition: Party.h:228
Party::field_854
std::array< char, 32 > field_854
Definition: Party.h:302
PARTY_INVALID
@ PARTY_INVALID
Definition: Party.h:95
Party::field_740
int field_740
Definition: Party.h:284
Party::field_7d7
std::array< char, 39 > field_7d7
Definition: Party.h:299
Party::ImmolationActive
bool ImmolationActive()
Definition: Party.h:208
PartyTimeStruct::Shops_next_generation_time
std::array< GameTime, 85 > Shops_next_generation_time
Definition: Party.h:143
Party::FeatherFallActive
bool FeatherFallActive()
Definition: Party.h:214
PARTY_QUEST_EMERALD_HAT_ACTIVE
@ PARTY_QUEST_EMERALD_HAT_ACTIVE
Definition: Party.h:19
PARTY_QUEST_OBELISK_EVENMORN_ISLAND
@ PARTY_QUEST_OBELISK_EVENMORN_ISLAND
Definition: Party.h:36
PARTY_QUEST_BITS
PARTY_QUEST_BITS
Definition: Party.h:13
PartyAlignment::PartyAlignment_Evil
@ PartyAlignment_Evil
Party::hirelingScrollPosition
unsigned __int8 hirelingScrollPosition
Definition: Party.h:268
PARTY_QUEST_OBELISK_BRACADA_DESERT
@ PARTY_QUEST_OBELISK_BRACADA_DESERT
Definition: Party.h:33
Party::sEyelevel
int sEyelevel
Definition: Party.h:239
Party::TorchLightLastIntensity
float TorchLightLastIntensity
Definition: Party.h:328
Party::field_7B5_in_arena_quest
char field_7B5_in_arena_quest
Definition: Party.h:293
Party::InTheShopFlags
std::array< int, 53 > InTheShopFlags
Definition: Party.h:323
Party::GetRedAlert
bool GetRedAlert()
Definition: Party.h:221
Party::uDefaultPartyHeight
unsigned int uDefaultPartyHeight
Definition: Party.h:238
PARTY_unkA
@ PARTY_unkA
Definition: Party.h:105
PARTY_QUEST_HARMONDALE_REBUILT
@ PARTY_QUEST_HARMONDALE_REBUILT
Definition: Party.h:25
Party::_quest_bits
unsigned __int8 _quest_bits[64]
Definition: Party.h:291
Party::FlyActive
bool FlyActive()
Definition: Party.h:202
PARTY_BUFF_STONE_SKIN
@ PARTY_BUFF_STONE_SKIN
Definition: Party.h:86
PARTY_QUEST_OBELISK_ERATHIA
@ PARTY_QUEST_OBELISK_ERATHIA
Definition: Party.h:30
PARTY_BUFF_WATER_WALK
@ PARTY_BUFF_WATER_WALK
Definition: Party.h:89
Party::uCurrentHour
unsigned int uCurrentHour
Definition: Party.h:275
PARTY_WalkForward
@ PARTY_WalkForward
Definition: Party.h:100
Party::flt_TorchlightColorR
float flt_TorchlightColorR
Definition: Party.h:325
PARTY_QUEST_FOUNTAIN_THE_PIT
@ PARTY_QUEST_FOUNTAIN_THE_PIT
Definition: Party.h:50
Party::pPlayers
std::array< Player, 4 > pPlayers
Definition: Party.h:310
PartyTimeStruct::HistoryEventTimes
std::array< GameTime, 29 > HistoryEventTimes
Definition: Party.h:146
PARTY_unkB
@ PARTY_unkB
Definition: Party.h:106
Party::uNumArenaLordWins
char uNumArenaLordWins
Definition: Party.h:297
Party::uNumPrisonTerms
int uNumPrisonTerms
Definition: Party.h:285
Party::UpdatePlayersAndHirelingsEmotions
void UpdatePlayersAndHirelingsEmotions()
Definition: Party.cpp:657
PARTY_BUFF_RESIST_AIR
@ PARTY_BUFF_RESIST_AIR
Definition: Party.h:71
Party::uNumArenaSquireWins
char uNumArenaSquireWins
Definition: Party.h:295
Party::uDefaultEyelevel
unsigned int uDefaultEyelevel
Definition: Party.h:240
Party::sub_421B2C_PlaceInInventory_or_DropPickedItem
void sub_421B2C_PlaceInInventory_or_DropPickedItem()
Definition: Party.cpp:1048
Party::uCurrentMonthWeek
unsigned int uCurrentMonthWeek
Definition: Party.h:273
PartyTimeStruct::bountyHunting_next_generation_time
std::array< GameTime, 10 > bountyHunting_next_generation_time
Definition: Party.h:142
PARTY_BUFF_RESIST_MIND
@ PARTY_BUFF_RESIST_MIND
Definition: Party.h:83
PARTY_QUEST_OBELISK_TULAREAN_FOREST
@ PARTY_QUEST_OBELISK_TULAREAN_FOREST
Definition: Party.h:31
Party::uNumGold
unsigned int uNumGold
Definition: Party.h:281
Party::field_6F0
int field_6F0
Definition: Party.h:261
Party::field_1605C
std::array< char, 24 > field_1605C
Definition: Party.h:317
PARTY_QUEST_OBELISK_TREASURE_FOUND
@ PARTY_QUEST_OBELISK_TREASURE_FOUND
Definition: Party.h:44
PARTY_BUFF_WIZARD_EYE
@ PARTY_BUFF_WIZARD_EYE
Definition: Party.h:90
Party::last_regenerated
GameTime last_regenerated
Definition: Party.h:248
Party::GetPartyFame
unsigned int GetPartyFame()
Definition: Party.cpp:302
PARTY_BUFF_TORCHLIGHT
@ PARTY_BUFF_TORCHLIGHT
Definition: Party.h:87
Party::PartyTimes
PartyTimeStruct PartyTimes
Definition: Party.h:249
Party::Sleep8Hours
static void Sleep8Hours()
Definition: Party.cpp:899
Party::field_0
int field_0
Definition: Party.h:236
Party::pPartyBuffs
std::array< SpellBuff, 20 > pPartyBuffs
Definition: Party.h:309
PARTY_FlyUp
@ PARTY_FlyUp
Definition: Party.h:108
PARTY_QUEST_FOUNTAIN_EVENMORN_ISLE
@ PARTY_QUEST_FOUNTAIN_EVENMORN_ISLE
Definition: Party.h:51
NPC.h
Party::uFallStartY
int uFallStartY
Definition: Party.h:265
Party::uPartyHeight
unsigned int uPartyHeight
Definition: Party.h:237
Party::Yell
void Yell()
Definition: Party.cpp:598
Party::AddItemToParty
bool AddItemToParty(ItemGen *pItem)
Definition: Party.cpp:1096
PARTY_FLAGS_1_STANDING_ON_WATER
@ PARTY_FLAGS_1_STANDING_ON_WATER
Definition: Party.h:61
Party::PartyFindsGold
void PartyFindsGold(unsigned int uNumGold, int _1_dont_share_with_followers___2_the_same_but_without_a_message__else_normal)
Definition: Party.cpp:976
PARTY_FLAGS_1_LANDING
@ PARTY_FLAGS_1_LANDING
Definition: Party.h:62
PARTY_LookUp
@ PARTY_LookUp
Definition: Party.h:102
PARTY_QUEST_OBELISK_HARMONDALE
@ PARTY_QUEST_OBELISK_HARMONDALE
Definition: Party.h:29
Party::GetYellowAlert
bool GetYellowAlert()
Definition: Party.h:225
PARTY_dword
@ PARTY_dword
Definition: Party.h:116
PARTY_FLAGS_1_ALERT_YELLOW
@ PARTY_FLAGS_1_ALERT_YELLOW
Definition: Party.h:60
Party::field_72C
int field_72C
Definition: Party.h:279
_449B7E_toggle_bit
void _449B7E_toggle_bit(unsigned char *pArray, int16_t a2, uint16_t bToggle)
Party::_497FC5_check_party_perception_against_level
bool _497FC5_check_party_perception_against_level()
Definition: Party.cpp:130
Party::vPrevPosition
Vec3_int_ vPrevPosition
Definition: Party.h:253
PARTY_Land
@ PARTY_Land
Definition: Party.h:110
Party::days_played_without_rest
unsigned char days_played_without_rest
Definition: Party.h:290
Party::bFlying
unsigned int bFlying
Definition: Party.h:266
Party::flt_TorchlightColorB
float flt_TorchlightColorB
Definition: Party.h:327
ActionQueue::Reset
void Reset()
Definition: Party.cpp:122
PARTY_BUFF_RESIST_WATER
@ PARTY_BUFF_RESIST_WATER
Definition: Party.h:88
Party::_6FC_water_lava_timer
int _6FC_water_lava_timer
Definition: Party.h:264
Party::WizardEyeActive
bool WizardEyeActive()
Definition: Party.h:193
PARTY_QUEST_OBELISK_THE_PIT
@ PARTY_QUEST_OBELISK_THE_PIT
Definition: Party.h:35
Party::pHireling2Name
char pHireling2Name[100]
Definition: Party.h:319
PARTY_FlyDown
@ PARTY_FlyDown
Definition: Party.h:109
PARTY_FastTurnRight
@ PARTY_FastTurnRight
Definition: Party.h:114
Party::field_708
char field_708
Definition: Party.h:267
Party::field_28
int field_28
Definition: Party.h:246
PARTY_QUEST_OBELISK_MOUNT_NIGHON
@ PARTY_QUEST_OBELISK_MOUNT_NIGHON
Definition: Party.h:37
_449B57_test_bit
bool _449B57_test_bit(uint8_t *a1, int16_t a2)
PARTY_QUEST_EMERALD_LUTE_ACTIVE
@ PARTY_QUEST_EMERALD_LUTE_ACTIVE
Definition: Party.h:18
PARTY_TurnRight
@ PARTY_TurnRight
Definition: Party.h:97
Party::_46A89E_immolation_effect
int _46A89E_immolation_effect(int *affected, int affectedArrSize, int effectRange)
Definition: Party.cpp:1144
PARTY_CenterView
@ PARTY_CenterView
Definition: Party.h:104
PARTY_BUFF_HASTE
@ PARTY_BUFF_HASTE
Definition: Party.h:79
PARTY_BUFF_FEATHER_FALL
@ PARTY_BUFF_FEATHER_FALL
Definition: Party.h:76
PARTY_RunBackward
@ PARTY_RunBackward
Definition: Party.h:112
Party::TakeGold
static void TakeGold(int amount)
Definition: Party.cpp:292
Party::RestAndHeal
void RestAndHeal()
Definition: Party.cpp:793
int32_t
signed __int32 int32_t
Definition: SDL_config.h:38
Party::ImmolationSkillLevel
int ImmolationSkillLevel()
Definition: Party.h:211
Party::IsPartyGood
bool IsPartyGood()
Definition: Party.cpp:1141
PARTY_BUFF_HEROISM
@ PARTY_BUFF_HEROISM
Definition: Party.h:80
ActionQueue::Next
PartyAction Next()
Definition: Party.cpp:1204
Party::uFlags
unsigned int uFlags
Definition: Party.h:313
Party::field_6E0
int field_6E0
Definition: Party.h:257
Party::uWalkSpeed
unsigned int uWalkSpeed
Definition: Party.h:243
PARTY_QUEST_EVENMORN_MAP_FOUND
@ PARTY_QUEST_EVENMORN_MAP_FOUND
Definition: Party.h:23
Party::Party
Party()
Definition: Party.h:152
PARTY_QUEST_OBELISK_AVLEE
@ PARTY_QUEST_OBELISK_AVLEE
Definition: Party.h:41
PARTY_QUEST_EMERALD_RED_POTION_ACTIVE
@ PARTY_QUEST_EMERALD_RED_POTION_ACTIVE
Definition: Party.h:14
ActionQueue::ActionQueue
ActionQueue()
Definition: Party.h:122
PARTY_FLAGS_1_WATER_DAMAGE
@ PARTY_FLAGS_1_WATER_DAMAGE
Definition: Party.h:57
PartyAction
PartyAction
Definition: Party.h:94
Party::GetFood
int GetFood() const
Definition: Party.cpp:272
PARTY_QUEST_EMERALD_LONGBOW_ACTIVE
@ PARTY_QUEST_EMERALD_LONGBOW_ACTIVE
Definition: Party.h:16
Party::StandartItemsInShops
std::array< std::array< ItemGen, 12 >, 53 > StandartItemsInShops
Definition: Party.h:314
Party::CreateDefaultParty
void CreateDefaultParty(bool bDebugGiveItems=false)
Definition: Party.cpp:311
PARTY_QUEST_OBELISK_LAND_OF_THE_GIANTS
@ PARTY_QUEST_OBELISK_LAND_OF_THE_GIANTS
Definition: Party.h:39
Party::sPrevRotationY
int sPrevRotationY
Definition: Party.h:254
Party::field_74C
int field_74C
Definition: Party.h:287
Party::uNumArenaPageWins
char uNumArenaPageWins
Definition: Party.h:294
Party::pTurnBasedPlayerRecoveryTimes
std::array< int, 4 > pTurnBasedPlayerRecoveryTimes
Definition: Party.h:322
Party::field_818
std::array< char, 60 > field_818
Definition: Party.h:301
PARTY_QUEST_OBELISK_BARROW_DOWNS
@ PARTY_QUEST_OBELISK_BARROW_DOWNS
Definition: Party.h:38
Party::GetPartyReputation
int GetPartyReputation()
Definition: Party.cpp:922
PARTY_FLAGS_1
PARTY_FLAGS_1
Definition: Party.h:55
Party::cNonHireFollowers
char cNonHireFollowers
Definition: Party.h:269
ActionQueue::Add
void Add(PartyAction action)
Definition: Party.cpp:125
Party::pArcomageWins
std::array< unsigned __int8, 16 > pArcomageWins
Definition: Party.h:292
Party::GivePartyExp
void GivePartyExp(unsigned int pEXPNum)
Definition: Party.cpp:938
PARTY_FLAGS_2_RUNNING
@ PARTY_FLAGS_2_RUNNING
Definition: Party.h:66
PARTY_TurnLeft
@ PARTY_TurnLeft
Definition: Party.h:96
Party::pHirelings
std::array< NPCData, 2 > pHirelings
Definition: Party.h:311
Party::uNumGoldInBank
unsigned int uNumGoldInBank
Definition: Party.h:282
PARTY_QUEST_OBELISK_STONE_CITY
@ PARTY_QUEST_OBELISK_STONE_CITY
Definition: Party.h:42
Party::bTurnBasedModeOn
bool bTurnBasedModeOn
Definition: Party.h:305
Party::CountHirelings
void CountHirelings()
Definition: Party.cpp:57
Party::HasItem
bool HasItem(unsigned int uItemID)
Definition: Party.cpp:216
Party::pHireling1Name
char pHireling1Name[100]
Definition: Party.h:318
Party::field_6E4
int field_6E4
Definition: Party.h:258
PARTY_BUFF_INVISIBILITY
@ PARTY_BUFF_INVISIBILITY
Definition: Party.h:82
Party::armageddon_timer
int armageddon_timer
Definition: Party.h:320
uint8_t
unsigned __int8 uint8_t
Definition: SDL_config.h:35
Party::uCurrentDayOfMonth
unsigned int uCurrentDayOfMonth
Definition: Party.h:274
ActionQueue::uNumActions
unsigned int uNumActions
Definition: Party.h:128
TestPartyQuestBit
bool TestPartyQuestBit(PARTY_QUEST_BITS bit)
Definition: Party.cpp:917
PARTY_BUFF_RESIST_EARTH
@ PARTY_BUFF_RESIST_EARTH
Definition: Party.h:75
Party::field_14_radius
int field_14_radius
Definition: Party.h:241
Party::field_730
int field_730
Definition: Party.h:280
Player.h
PARTY_FLAGS_1_0002
@ PARTY_FLAGS_1_0002
Definition: Party.h:56
PARTY_BUFF_INDEX
PARTY_BUFF_INDEX
Definition: Party.h:70
PARTY_QUEST_FOUNTAIN_CELESTIA
@ PARTY_QUEST_FOUNTAIN_CELESTIA
Definition: Party.h:49
pParty
Party * pParty
Definition: Party.cpp:30
Party::IsPartyEvil
bool IsPartyEvil()
Definition: Party.cpp:1139
pPartyActionQueue
struct ActionQueue * pPartyActionQueue
Definition: Party.cpp:32
PARTY_BUFF_FLY
@ PARTY_BUFF_FLY
Definition: Party.h:78
Party::SetHoldingItem
void SetHoldingItem(ItemGen *pItem)
Definition: Party.cpp:150
Party::TorchlightActive
bool TorchlightActive()
Definition: Party.h:199
PARTY_QUEST_EMERALD_SEASHELL_ACTIVE
@ PARTY_QUEST_EMERALD_SEASHELL_ACTIVE
Definition: Party.h:15
Party::walk_sound_timer
int walk_sound_timer
Definition: Party.h:263
PARTY_BUFF_RESIST_BODY
@ PARTY_BUFF_RESIST_BODY
Definition: Party.h:72
PartyTimeStruct::_shop_ban_times
std::array< GameTime, 53 > _shop_ban_times
Definition: Party.h:144
Party::uNumArcomageWins
int uNumArcomageWins
Definition: Party.h:303
PARTY_BUFF_DETECT_LIFE
@ PARTY_BUFF_DETECT_LIFE
Definition: Party.h:74
PARTY_BUFF_RESIST_FIRE
@ PARTY_BUFF_RESIST_FIRE
Definition: Party.h:77
ActionQueue
Definition: Party.h:121
Party::_autonote_bits
unsigned char _autonote_bits[26]
Definition: Party.h:300
Party::uNumFoodRations
unsigned int uNumFoodRations
Definition: Party.h:278
PARTY_Jump
@ PARTY_Jump
Definition: Party.h:107
Party::GetFirstCanAct
int GetFirstCanAct()
Definition: Party.cpp:156
PARTY_QUEST_FINISHED_EMERALD_ISLE
@ PARTY_QUEST_FINISHED_EMERALD_ISLE
Definition: Party.h:27
Party::uNumDeaths
unsigned int uNumDeaths
Definition: Party.h:283
Rest
void Rest(unsigned int uHoursToSleep)
Definition: Party.cpp:857
PartyTimeStruct::CounterEventValues
std::array< GameTime, 10 > CounterEventValues
Definition: Party.h:145
PARTY_QUEST_OBELISK_TATALIA
@ PARTY_QUEST_OBELISK_TATALIA
Definition: Party.h:40
Party::uNumArcomageLoses
int uNumArcomageLoses
Definition: Party.h:304
PartyTimeStruct
Definition: Party.h:141
PARTY_QUEST_OBELISK_DEYJA
@ PARTY_QUEST_OBELISK_DEYJA
Definition: Party.h:32
ItemGen
Definition: Items.h:263
Party::floor_face_pid
int floor_face_pid
Definition: Party.h:262
PARTY_QUEST_FOUNTAIN_PIERPONT
@ PARTY_QUEST_FOUNTAIN_PIERPONT
Definition: Party.h:48
Party::field_6EC
int field_6EC
Definition: Party.h:260
PartyTimeStruct::_s_times
std::array< GameTime, 20 > _s_times
Definition: Party.h:147
Party::uFlags2
int uFlags2
Definition: Party.h:307
Party::uCurrentYear
unsigned int uCurrentYear
Definition: Party.h:271
Party::SpellBooksInGuilds
std::array< std::array< ItemGen, 12 >, 32 > SpellBooksInGuilds
Definition: Party.h:316
PARTY_WalkBackward
@ PARTY_WalkBackward
Definition: Party.h:101
RestAndHeal
void RestAndHeal(int uNumMinutes)
Definition: Party.cpp:872
Party::AddGold
static void AddGold(int amount)
Definition: Party.cpp:287
uint32_t
unsigned __int32 uint32_t
Definition: SDL_config.h:39
PARTY_FastTurnLeft
@ PARTY_FastTurnLeft
Definition: Party.h:113
Party::sPrevEyelevel
int sPrevEyelevel
Definition: Party.h:256
Party::WizardEyeSkillLevel
int WizardEyeSkillLevel()
Definition: Party.h:196
Party::SpecialItemsInShops
std::array< std::array< ItemGen, 12 >, 53 > SpecialItemsInShops
Definition: Party.h:315
Party::sRotationY
int sRotationY
Definition: Party.h:251
PARTY_RunForward
@ PARTY_RunForward
Definition: Party.h:111
GameTime
Definition: Time.h:14
Party::field_70B
char field_70B
Definition: Party.h:270
Party::monster_for_hunting_killed
std::array< __int16, 5 > monster_for_hunting_killed
Definition: Party.h:289
Party::GetGold
int GetGold() const
Definition: Party.cpp:264
PARTY_QUEST_FOUNTAIN_HARMONDALE
@ PARTY_QUEST_FOUNTAIN_HARMONDALE
Definition: Party.h:46
Party::uNumArenaKnightWins
char uNumArenaKnightWins
Definition: Party.h:296
Party::SetRedAlert
void SetRedAlert()
Definition: Party.h:224
Party::WaterWalkActive
bool WaterWalkActive()
Definition: Party.h:205
Party::Invisible
bool Invisible()
Definition: Party.h:217
Party::monster_id_for_hunting
std::array< __int16, 5 > monster_id_for_hunting
Definition: Party.h:288
Party::SetGold
static void SetGold(int amount)
Definition: Party.cpp:281
Party::flt_TorchlightColorG
float flt_TorchlightColorG
Definition: Party.h:326
PARTY_StrafeRight
@ PARTY_StrafeRight
Definition: Party.h:99
Party::playing_time
GameTime playing_time
Definition: Party.h:247
Party::armageddonDamage
int armageddonDamage
Definition: Party.h:321
Party::alignment
PartyAlignment alignment
Definition: Party.h:308
Party::GiveFood
static void GiveFood(int amount)
Definition: Party.cpp:255
Time.h