annotate Engine/Spells/CastSpellInfo.h @ 2575:a76d408c5132 tip

DrawTranslucent -> DrawTextureGrayShade Removed old texture drawing stuff
author a.parshin
date Wed, 09 Mar 2016 01:39:52 +0200
parents 30eb6dcac768
children
rev   line source
2499
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
1 #pragma once
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
2
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
3 #include <cstdint>
2566
30eb6dcac768 big spell fx overhaul
a.parshin
parents: 2499
diff changeset
4 #include <array>
2499
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
5
2566
30eb6dcac768 big spell fx overhaul
a.parshin
parents: 2499
diff changeset
6 #include "Spells.h"
2499
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
7
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
8 namespace CastSpellInfoHelpers
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
9 {
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
10 void _427D48();
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
11 void _427E01_cast_spell();
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
12 };
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
13
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
14 /* 271 */
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
15 #pragma pack(push, 1)
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
16 struct CastSpellInfo
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
17 {
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
18 //----- (00426987) --------------------------------------------------------
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
19 inline CastSpellInfo()
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
20 {
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
21 memset(this, 0, sizeof(*this));
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
22 }
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
23
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
24 struct GUIWindow *GetCastSpellInInventoryWindow();
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
25
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
26 uint16_t uSpellID;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
27 uint16_t uPlayerID;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
28 uint16_t uPlayerID_2;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
29 __int16 field_6;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
30 uint16_t uFlags;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
31 __int16 forced_spell_skill_level;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
32 int spell_target_pid;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
33 int sound_id;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
34 };
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
35 #pragma pack(pop)
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
36
2566
30eb6dcac768 big spell fx overhaul
a.parshin
parents: 2499
diff changeset
37
30eb6dcac768 big spell fx overhaul
a.parshin
parents: 2499
diff changeset
38 // flags
30eb6dcac768 big spell fx overhaul
a.parshin
parents: 2499
diff changeset
39 #define ON_CAST_WholeParty_BigImprovementAnim 0x0002
30eb6dcac768 big spell fx overhaul
a.parshin
parents: 2499
diff changeset
40 #define ON_CAST_TargetCrosshair 0x0008
30eb6dcac768 big spell fx overhaul
a.parshin
parents: 2499
diff changeset
41 #define ON_CAST_NoRecoverySpell 0x0020
30eb6dcac768 big spell fx overhaul
a.parshin
parents: 2499
diff changeset
42 #define ON_CAST_Telekenesis 0x0040
30eb6dcac768 big spell fx overhaul
a.parshin
parents: 2499
diff changeset
43 #define ON_CAST_Enchantment 0x0080
30eb6dcac768 big spell fx overhaul
a.parshin
parents: 2499
diff changeset
44 #define ON_CAST_MonsterSparkles 0x0100
30eb6dcac768 big spell fx overhaul
a.parshin
parents: 2499
diff changeset
45 #define ON_CAST_DarkSacrifice 0x0200
30eb6dcac768 big spell fx overhaul
a.parshin
parents: 2499
diff changeset
46 #define ON_CAST_CastingInProgress (ON_CAST_WholeParty_BigImprovementAnim | ON_CAST_TargetCrosshair | ON_CAST_Telekenesis | ON_CAST_Enchantment | ON_CAST_MonsterSparkles | ON_CAST_DarkSacrifice)
30eb6dcac768 big spell fx overhaul
a.parshin
parents: 2499
diff changeset
47 void _42777D_CastSpell_UseWand_ShootArrow(SPELL_TYPE spell, unsigned int uPlayerID, unsigned int a4, __int16 flags, int a6);