World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
CastSpellInfo.h
См. документацию.
1 #pragma once
2 
3 #include <array>
4 #include <cstdint>
5 
6 #include "Spells.h"
7 
10 void _427E01_cast_spell();
11 }; // namespace CastSpellInfoHelpers
12 
13 class GUIWindow;
14 
15 /* 271 */
16 #pragma pack(push, 1)
17 struct CastSpellInfo {
18  inline CastSpellInfo() {
19  memset(this, 0, sizeof(*this));
20  }
21 
23 
27  __int16 field_6;
31  int sound_id;
32 };
33 #pragma pack(pop)
34 
35 // flags
36 #define ON_CAST_WholeParty_BigImprovementAnim 0x0002
37 #define ON_CAST_TargetCrosshair 0x0008
38 #define ON_CAST_NoRecoverySpell 0x0020
39 #define ON_CAST_Telekenesis 0x0040
40 #define ON_CAST_Enchantment 0x0080
41 #define ON_CAST_MonsterSparkles 0x0100
42 #define ON_CAST_DarkSacrifice 0x0200
43 #define ON_CAST_CastingInProgress \
44  (ON_CAST_WholeParty_BigImprovementAnim | ON_CAST_TargetCrosshair | \
45  ON_CAST_Telekenesis | ON_CAST_Enchantment | ON_CAST_MonsterSparkles | \
46  ON_CAST_DarkSacrifice)
48  unsigned int uPlayerID,
49  unsigned int a4, __int16 flags,
50  int a6);
uint16_t
unsigned __int16 uint16_t
Definition: SDL_config.h:37
CastSpellInfo::CastSpellInfo
CastSpellInfo()
Definition: CastSpellInfo.h:18
CastSpellInfo::sound_id
int sound_id
Definition: CastSpellInfo.h:31
GUIWindow
Definition: GUIWindow.h:433
CastSpellInfo::uFlags
uint16_t uFlags
Definition: CastSpellInfo.h:28
CastSpellInfo
Definition: CastSpellInfo.h:17
_42777D_CastSpell_UseWand_ShootArrow
void _42777D_CastSpell_UseWand_ShootArrow(SPELL_TYPE spell, unsigned int uPlayerID, unsigned int a4, __int16 flags, int a6)
Definition: CastSpellInfo.cpp:4369
CastSpellInfo::uPlayerID
uint16_t uPlayerID
Definition: CastSpellInfo.h:25
SPELL_TYPE
SPELL_TYPE
Definition: Spells.h:10
CastSpellInfoHelpers
Definition: CastSpellInfo.h:8
CastSpellInfo::uPlayerID_2
uint16_t uPlayerID_2
Definition: CastSpellInfo.h:26
CastSpellInfo::forced_spell_skill_level
__int16 forced_spell_skill_level
Definition: CastSpellInfo.h:29
Spells.h
CastSpellInfo::uSpellID
uint16_t uSpellID
Definition: CastSpellInfo.h:24
CastSpellInfo::spell_target_pid
int spell_target_pid
Definition: CastSpellInfo.h:30
CastSpellInfo::field_6
__int16 field_6
Definition: CastSpellInfo.h:27
CastSpellInfo::GetCastSpellInInventoryWindow
GUIWindow * GetCastSpellInInventoryWindow()
Definition: UICharacter.cpp:660
flags
EGLSyncKHR EGLint flags
Definition: SDL_egl.h:898
CastSpellInfoHelpers::Cancel_Spell_Cast_In_Progress
void Cancel_Spell_Cast_In_Progress()
Definition: CastSpellInfo.cpp:4350
CastSpellInfoHelpers::_427E01_cast_spell
void _427E01_cast_spell()
Definition: CastSpellInfo.cpp:46