Mercurial > mm7
annotate stru6.h @ 1378:1fb9f4b9b6a7
Fixed portal culling at extreme angles.
author | Nomad |
---|---|
date | Tue, 16 Jul 2013 11:05:52 +0200 |
parents | b9747d9e9b4e |
children | 613c77e51e38 |
rev | line source |
---|---|
0 | 1 #pragma once |
2 | |
3 | |
4 /* 120 */ | |
5 #pragma pack(push, 1) | |
6 struct stru6_stru1_indoor_sw_billboard | |
7 { | |
8 //----- (004775B1) -------------------------------------------------------- | |
9 inline stru6_stru1_indoor_sw_billboard() | |
10 { | |
11 field_10 = 0; | |
12 uNumVec4sInArray1 = 0; | |
13 uNumVec3sInArray2 = 0; | |
14 pArray1 = nullptr; | |
15 pArray2 = nullptr; | |
16 } | |
17 | |
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 | 20 |
21 int _4775ED(float a2); | |
22 int _477927(float a2); | |
23 int sub_477C61(); | |
24 bool sub_477F63(); | |
25 int sub_47802A(); | |
26 void Initialize(int a2); | |
27 void _47829F_fireball_collision(float arg0, float a3, float a4, float a5, int a2); | |
28 | |
29 | |
30 unsigned int uNumVec4sInArray1; | |
31 struct stru16x *pArray1; | |
32 unsigned int uNumVec3sInArray2; | |
33 struct stru160 *pArray2; | |
34 int field_10; | |
1117
ad89d1905b48
* stru6_stru1_indoor_sw_billboard::sub_47802A() cleaned, fireball working
zipi
parents:
1106
diff
changeset
|
35 int field_14[40]; |
ad89d1905b48
* stru6_stru1_indoor_sw_billboard::sub_47802A() cleaned, fireball working
zipi
parents:
1106
diff
changeset
|
36 float field_B4[40]; |
0 | 37 }; |
38 #pragma pack(pop) | |
39 | |
40 | |
41 /* 122 */ | |
42 #pragma pack(push, 1) | |
43 struct PlayerBuffAnim | |
44 { | |
486 | 45 inline PlayerBuffAnim(): |
46 bRender(false), uSpellAnimTime(0), uSpellIconID(0) | |
47 {} | |
48 | |
0 | 49 __int16 bRender; |
50 __int16 field_2; | |
491 | 51 int uSpellAnimTimeElapsed; |
486 | 52 int uSpellAnimTime; |
0 | 53 int uSpellIconID; |
54 }; | |
55 #pragma pack(pop) | |
56 | |
57 | |
58 /* 307 */ | |
59 #pragma pack(push, 1) | |
60 struct ProjectileAnim | |
61 { | |
62 float srcX; | |
63 float srcY; | |
64 float srcZ; | |
65 float dstX; | |
66 float dstY; | |
67 float dstZ; | |
68 int uTextureID; | |
69 }; | |
70 #pragma pack(pop) | |
71 | |
72 | |
73 /* 306 */ | |
74 #pragma pack(push, 1) | |
75 struct stru6_stru2 | |
76 { | |
486 | 77 //int field_0; |
78 float flt_0_x; | |
79 float flt_4_y; | |
80 float flt_8_z; | |
81 int field_C; | |
0 | 82 }; |
83 #pragma pack(pop) | |
84 | |
85 | |
86 | |
87 /* 121 */ | |
88 #pragma pack(push, 1) | |
89 struct stru6 | |
90 { | |
91 //----- (004A7155) -------------------------------------------------------- | |
92 stru6() | |
93 { | |
94 this->field_204 = 0; | |
95 this->uFadeTime = 0; | |
96 this->uNumProjectiles = 0; | |
486 | 97 this->field_0 = 0; |
0 | 98 |
99 pStru1 = new stru6_stru1_indoor_sw_billboard; | |
100 pStru1->Initialize(0xFF3C1Eu); | |
101 } | |
102 //----- (004A71DC) -------------------------------------------------------- | |
103 ~stru6() | |
104 { | |
105 if (pStru1) | |
106 delete pStru1; | |
107 pStru1 = nullptr; | |
108 } | |
109 | |
110 void DoAddProjectile(float srcX, float srcY, float srcZ, float dstX, float dstY, float dstZ, unsigned int uTextureID); | |
111 void DrawProjectiles(); | |
515
cb0ad52d6a26
LayingItem -> SpriteObject (long-waited rename, old name was inaccurate and confused people)
Nomad
parents:
491
diff
changeset
|
112 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
|
113 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
|
114 void _4A7688_fireball_collision_particle(struct SpriteObject *a2); |
cb0ad52d6a26
LayingItem -> SpriteObject (long-waited rename, old name was inaccurate and confused people)
Nomad
parents:
491
diff
changeset
|
115 void _4A77FD_some_stuff_d3d(struct SpriteObject *a1); |
cb0ad52d6a26
LayingItem -> SpriteObject (long-waited rename, old name was inaccurate and confused people)
Nomad
parents:
491
diff
changeset
|
116 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
|
117 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
|
118 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
|
119 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
|
120 void _4A7C07(struct SpriteObject *a2); |
cb0ad52d6a26
LayingItem -> SpriteObject (long-waited rename, old name was inaccurate and confused people)
Nomad
parents:
491
diff
changeset
|
121 void AddProjectile(struct SpriteObject *a2, int a3, unsigned int uTextureID); |
142 | 122 void _4A7E89_sparkles_on_actor_after_it_casts_buff(struct Actor *pActor, unsigned int uDiffuse); |
0 | 123 void _4A7F74(int x, int y, int z); |
124 int _4A806F(struct Actor *pActor); | |
515
cb0ad52d6a26
LayingItem -> SpriteObject (long-waited rename, old name was inaccurate and confused people)
Nomad
parents:
491
diff
changeset
|
125 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
|
126 bool _4A81CA(struct SpriteObject *a2); |
486 | 127 void SetPlayerBuffAnim(unsigned __int16 uSpellID, unsigned __int16 uPlayerID); |
0 | 128 void FadeScreen__like_Turn_Undead_and_mb_Armageddon(unsigned int uDiffuseColor, unsigned int uFadeTime); |
129 int _4A8BFC(); | |
130 void RenderSpecialEffects(); | |
131 void DrawPlayerBuffAnims(); | |
132 void LoadAnimations(); | |
133 | |
134 | |
486 | 135 int field_0; |
136 stru6_stru2 array_4[31]; | |
137 int field_1F4; | |
138 int field_1F8; | |
139 int field_1FC; | |
0 | 140 int field_200; |
141 int field_204; | |
142 PlayerBuffAnim pPlayerBuffs[4]; | |
143 ProjectileAnim pProjectiles[32]; | |
144 int uNumProjectiles; | |
145 stru6_stru1_indoor_sw_billboard *pStru1; | |
146 int field_5D0; | |
147 int uAnimLength; | |
148 int uFadeTime; | |
149 int uFadeTime2; | |
150 int uFadeColor; | |
151 unsigned int uTextureID_effpar1; | |
152 unsigned int uTextureID_effpar2; | |
153 unsigned int uTextureID_effpar3; | |
154 unsigned int uSpriteID_sp57c; | |
155 int field_5F4; | |
156 }; | |
157 #pragma pack(pop) | |
158 | |
159 |