annotate stru6.h @ 1602:96a1f5e0b6cd

Merge
author Grumpy7
date Thu, 12 Sep 2013 09:55:20 +0200
parents 613c77e51e38
children 9bd7522cdbbb
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2
Ritor1
parents:
diff changeset
3
Ritor1
parents:
diff changeset
4 /* 120 */
Ritor1
parents:
diff changeset
5 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
6 struct stru6_stru1_indoor_sw_billboard
Ritor1
parents:
diff changeset
7 {
Ritor1
parents:
diff changeset
8 //----- (004775B1) --------------------------------------------------------
Ritor1
parents:
diff changeset
9 inline stru6_stru1_indoor_sw_billboard()
Ritor1
parents:
diff changeset
10 {
1390
613c77e51e38 Messed with spell effects drawing a bit.
Nomad
parents: 1254
diff changeset
11 uNumVertices = 0;
0
Ritor1
parents:
diff changeset
12 uNumVec4sInArray1 = 0;
Ritor1
parents:
diff changeset
13 uNumVec3sInArray2 = 0;
Ritor1
parents:
diff changeset
14 pArray1 = nullptr;
Ritor1
parents:
diff changeset
15 pArray2 = nullptr;
Ritor1
parents:
diff changeset
16 }
Ritor1
parents:
diff changeset
17
Ritor1
parents:
diff changeset
18 //----- (004775C4) --------------------------------------------------------
1106
3395579f6c4d stru6_stru1_indoor_sw_billboard destructor fix, removing "extern" from struct definition, fixing probable typo in SPELL_AIR_SPARKS
Grumpy7
parents: 515
diff changeset
19 virtual ~stru6_stru1_indoor_sw_billboard();
0
Ritor1
parents:
diff changeset
20
Ritor1
parents:
diff changeset
21 int _4775ED(float a2);
Ritor1
parents:
diff changeset
22 int _477927(float a2);
Ritor1
parents:
diff changeset
23 int sub_477C61();
Ritor1
parents:
diff changeset
24 bool sub_477F63();
Ritor1
parents:
diff changeset
25 int sub_47802A();
Ritor1
parents:
diff changeset
26 void Initialize(int a2);
1390
613c77e51e38 Messed with spell effects drawing a bit.
Nomad
parents: 1254
diff changeset
27 void _47829F_sphere_particle(float x_offset, float y_offset, float z_offset, float scale, int diffuse);
613c77e51e38 Messed with spell effects drawing a bit.
Nomad
parents: 1254
diff changeset
28
0
Ritor1
parents:
diff changeset
29
1390
613c77e51e38 Messed with spell effects drawing a bit.
Nomad
parents: 1254
diff changeset
30 struct local_01
613c77e51e38 Messed with spell effects drawing a bit.
Nomad
parents: 1254
diff changeset
31 {
613c77e51e38 Messed with spell effects drawing a bit.
Nomad
parents: 1254
diff changeset
32 float x;
613c77e51e38 Messed with spell effects drawing a bit.
Nomad
parents: 1254
diff changeset
33 float y;
613c77e51e38 Messed with spell effects drawing a bit.
Nomad
parents: 1254
diff changeset
34 float z;
613c77e51e38 Messed with spell effects drawing a bit.
Nomad
parents: 1254
diff changeset
35 int diffuse;
613c77e51e38 Messed with spell effects drawing a bit.
Nomad
parents: 1254
diff changeset
36 };
0
Ritor1
parents:
diff changeset
37
Ritor1
parents:
diff changeset
38 unsigned int uNumVec4sInArray1;
Ritor1
parents:
diff changeset
39 struct stru16x *pArray1;
Ritor1
parents:
diff changeset
40 unsigned int uNumVec3sInArray2;
Ritor1
parents:
diff changeset
41 struct stru160 *pArray2;
1390
613c77e51e38 Messed with spell effects drawing a bit.
Nomad
parents: 1254
diff changeset
42 int uNumVertices;
613c77e51e38 Messed with spell effects drawing a bit.
Nomad
parents: 1254
diff changeset
43 local_01 field_14[5];
613c77e51e38 Messed with spell effects drawing a bit.
Nomad
parents: 1254
diff changeset
44 int field_64[20];
613c77e51e38 Messed with spell effects drawing a bit.
Nomad
parents: 1254
diff changeset
45 float field_B4[20];
613c77e51e38 Messed with spell effects drawing a bit.
Nomad
parents: 1254
diff changeset
46 local_01 field_104[5];
0
Ritor1
parents:
diff changeset
47 };
Ritor1
parents:
diff changeset
48 #pragma pack(pop)
Ritor1
parents:
diff changeset
49
Ritor1
parents:
diff changeset
50
Ritor1
parents:
diff changeset
51 /* 122 */
Ritor1
parents:
diff changeset
52 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
53 struct PlayerBuffAnim
Ritor1
parents:
diff changeset
54 {
486
Nomad
parents: 142
diff changeset
55 inline PlayerBuffAnim():
Nomad
parents: 142
diff changeset
56 bRender(false), uSpellAnimTime(0), uSpellIconID(0)
Nomad
parents: 142
diff changeset
57 {}
Nomad
parents: 142
diff changeset
58
0
Ritor1
parents:
diff changeset
59 __int16 bRender;
Ritor1
parents:
diff changeset
60 __int16 field_2;
491
e01730a207c3 Spell animations on portraits drawn when casting
Nomad
parents: 486
diff changeset
61 int uSpellAnimTimeElapsed;
486
Nomad
parents: 142
diff changeset
62 int uSpellAnimTime;
0
Ritor1
parents:
diff changeset
63 int uSpellIconID;
Ritor1
parents:
diff changeset
64 };
Ritor1
parents:
diff changeset
65 #pragma pack(pop)
Ritor1
parents:
diff changeset
66
Ritor1
parents:
diff changeset
67
Ritor1
parents:
diff changeset
68 /* 307 */
Ritor1
parents:
diff changeset
69 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
70 struct ProjectileAnim
Ritor1
parents:
diff changeset
71 {
Ritor1
parents:
diff changeset
72 float srcX;
Ritor1
parents:
diff changeset
73 float srcY;
Ritor1
parents:
diff changeset
74 float srcZ;
Ritor1
parents:
diff changeset
75 float dstX;
Ritor1
parents:
diff changeset
76 float dstY;
Ritor1
parents:
diff changeset
77 float dstZ;
Ritor1
parents:
diff changeset
78 int uTextureID;
Ritor1
parents:
diff changeset
79 };
Ritor1
parents:
diff changeset
80 #pragma pack(pop)
Ritor1
parents:
diff changeset
81
Ritor1
parents:
diff changeset
82
Ritor1
parents:
diff changeset
83 /* 306 */
Ritor1
parents:
diff changeset
84 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
85 struct stru6_stru2
Ritor1
parents:
diff changeset
86 {
486
Nomad
parents: 142
diff changeset
87 //int field_0;
Nomad
parents: 142
diff changeset
88 float flt_0_x;
Nomad
parents: 142
diff changeset
89 float flt_4_y;
Nomad
parents: 142
diff changeset
90 float flt_8_z;
Nomad
parents: 142
diff changeset
91 int field_C;
0
Ritor1
parents:
diff changeset
92 };
Ritor1
parents:
diff changeset
93 #pragma pack(pop)
Ritor1
parents:
diff changeset
94
Ritor1
parents:
diff changeset
95
Ritor1
parents:
diff changeset
96
Ritor1
parents:
diff changeset
97 /* 121 */
Ritor1
parents:
diff changeset
98 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
99 struct stru6
Ritor1
parents:
diff changeset
100 {
Ritor1
parents:
diff changeset
101 //----- (004A7155) --------------------------------------------------------
Ritor1
parents:
diff changeset
102 stru6()
Ritor1
parents:
diff changeset
103 {
Ritor1
parents:
diff changeset
104 this->field_204 = 0;
Ritor1
parents:
diff changeset
105 this->uFadeTime = 0;
Ritor1
parents:
diff changeset
106 this->uNumProjectiles = 0;
486
Nomad
parents: 142
diff changeset
107 this->field_0 = 0;
0
Ritor1
parents:
diff changeset
108
Ritor1
parents:
diff changeset
109 pStru1 = new stru6_stru1_indoor_sw_billboard;
Ritor1
parents:
diff changeset
110 pStru1->Initialize(0xFF3C1Eu);
Ritor1
parents:
diff changeset
111 }
Ritor1
parents:
diff changeset
112 //----- (004A71DC) --------------------------------------------------------
Ritor1
parents:
diff changeset
113 ~stru6()
Ritor1
parents:
diff changeset
114 {
Ritor1
parents:
diff changeset
115 if (pStru1)
Ritor1
parents:
diff changeset
116 delete pStru1;
Ritor1
parents:
diff changeset
117 pStru1 = nullptr;
Ritor1
parents:
diff changeset
118 }
Ritor1
parents:
diff changeset
119
Ritor1
parents:
diff changeset
120 void DoAddProjectile(float srcX, float srcY, float srcZ, float dstX, float dstY, float dstZ, unsigned int uTextureID);
Ritor1
parents:
diff changeset
121 void DrawProjectiles();
515
cb0ad52d6a26 LayingItem -> SpriteObject (long-waited rename, old name was inaccurate and confused people)
Nomad
parents: 491
diff changeset
122 void _4A73AA_hanging_trace_particles___like_fire_strike_ice_blast_etc(struct SpriteObject *a2, unsigned int uDiffuse, unsigned int uTextureID);
cb0ad52d6a26 LayingItem -> SpriteObject (long-waited rename, old name was inaccurate and confused people)
Nomad
parents: 491
diff changeset
123 void _4A75CC_single_spell_collision_particle(struct SpriteObject *a1, unsigned int uDiffuse, unsigned int uTextureID);
cb0ad52d6a26 LayingItem -> SpriteObject (long-waited rename, old name was inaccurate and confused people)
Nomad
parents: 491
diff changeset
124 void _4A7688_fireball_collision_particle(struct SpriteObject *a2);
1390
613c77e51e38 Messed with spell effects drawing a bit.
Nomad
parents: 1254
diff changeset
125 void _4A77FD_implosion_particle(struct SpriteObject *a1);
515
cb0ad52d6a26 LayingItem -> SpriteObject (long-waited rename, old name was inaccurate and confused people)
Nomad
parents: 491
diff changeset
126 void _4A78AE_sparks_spell(struct SpriteObject *a1);
cb0ad52d6a26 LayingItem -> SpriteObject (long-waited rename, old name was inaccurate and confused people)
Nomad
parents: 491
diff changeset
127 void _4A7948_mind_blast_after_effect(struct SpriteObject *a1);
cb0ad52d6a26 LayingItem -> SpriteObject (long-waited rename, old name was inaccurate and confused people)
Nomad
parents: 491
diff changeset
128 bool AddMobileLight(struct SpriteObject *a1, unsigned int uDiffuse, int uRadius);
cb0ad52d6a26 LayingItem -> SpriteObject (long-waited rename, old name was inaccurate and confused people)
Nomad
parents: 491
diff changeset
129 void _4A7A66_miltiple_spell_collision_partifles___like_after_sparks_or_lightning(SpriteObject *a1, unsigned int uDiffuse, unsigned int uTextureID, float a4);
cb0ad52d6a26 LayingItem -> SpriteObject (long-waited rename, old name was inaccurate and confused people)
Nomad
parents: 491
diff changeset
130 void _4A7C07(struct SpriteObject *a2);
cb0ad52d6a26 LayingItem -> SpriteObject (long-waited rename, old name was inaccurate and confused people)
Nomad
parents: 491
diff changeset
131 void AddProjectile(struct SpriteObject *a2, int a3, unsigned int uTextureID);
142
8b8fd4d83fdc Various things here and there
Nomad
parents: 0
diff changeset
132 void _4A7E89_sparkles_on_actor_after_it_casts_buff(struct Actor *pActor, unsigned int uDiffuse);
0
Ritor1
parents:
diff changeset
133 void _4A7F74(int x, int y, int z);
Ritor1
parents:
diff changeset
134 int _4A806F(struct Actor *pActor);
515
cb0ad52d6a26 LayingItem -> SpriteObject (long-waited rename, old name was inaccurate and confused people)
Nomad
parents: 491
diff changeset
135 void _4A80DC_some_stuff_sw(struct SpriteObject *a2);
cb0ad52d6a26 LayingItem -> SpriteObject (long-waited rename, old name was inaccurate and confused people)
Nomad
parents: 491
diff changeset
136 bool _4A81CA(struct SpriteObject *a2);
486
Nomad
parents: 142
diff changeset
137 void SetPlayerBuffAnim(unsigned __int16 uSpellID, unsigned __int16 uPlayerID);
0
Ritor1
parents:
diff changeset
138 void FadeScreen__like_Turn_Undead_and_mb_Armageddon(unsigned int uDiffuseColor, unsigned int uFadeTime);
Ritor1
parents:
diff changeset
139 int _4A8BFC();
Ritor1
parents:
diff changeset
140 void RenderSpecialEffects();
Ritor1
parents:
diff changeset
141 void DrawPlayerBuffAnims();
Ritor1
parents:
diff changeset
142 void LoadAnimations();
Ritor1
parents:
diff changeset
143
Ritor1
parents:
diff changeset
144
486
Nomad
parents: 142
diff changeset
145 int field_0;
Nomad
parents: 142
diff changeset
146 stru6_stru2 array_4[31];
Nomad
parents: 142
diff changeset
147 int field_1F4;
Nomad
parents: 142
diff changeset
148 int field_1F8;
Nomad
parents: 142
diff changeset
149 int field_1FC;
0
Ritor1
parents:
diff changeset
150 int field_200;
Ritor1
parents:
diff changeset
151 int field_204;
Ritor1
parents:
diff changeset
152 PlayerBuffAnim pPlayerBuffs[4];
Ritor1
parents:
diff changeset
153 ProjectileAnim pProjectiles[32];
Ritor1
parents:
diff changeset
154 int uNumProjectiles;
Ritor1
parents:
diff changeset
155 stru6_stru1_indoor_sw_billboard *pStru1;
Ritor1
parents:
diff changeset
156 int field_5D0;
Ritor1
parents:
diff changeset
157 int uAnimLength;
Ritor1
parents:
diff changeset
158 int uFadeTime;
Ritor1
parents:
diff changeset
159 int uFadeTime2;
Ritor1
parents:
diff changeset
160 int uFadeColor;
Ritor1
parents:
diff changeset
161 unsigned int uTextureID_effpar1;
Ritor1
parents:
diff changeset
162 unsigned int uTextureID_effpar2;
Ritor1
parents:
diff changeset
163 unsigned int uTextureID_effpar3;
Ritor1
parents:
diff changeset
164 unsigned int uSpriteID_sp57c;
Ritor1
parents:
diff changeset
165 int field_5F4;
Ritor1
parents:
diff changeset
166 };
Ritor1
parents:
diff changeset
167 #pragma pack(pop)
Ritor1
parents:
diff changeset
168
Ritor1
parents:
diff changeset
169