annotate Actor.h @ 20:d3536563ef2d

Удалил файлы .suo и .user
author Lower
date Sat, 13 Oct 2012 21:16:44 +0600
parents 8b8875f5b359
children bcc051713d20
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2 #include "VectorTypes.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3 #include "Items.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4 #include "Monsters.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5 #include "Spells.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 /* 357 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 struct stru319
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 void LootActor(struct Actor *pActor);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17 int which_player_would_attack(struct Actor *pActor);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18 bool special_ability_use_check(struct Actor *pActor, int a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19 int _427102(struct Actor *pActor, signed int a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20 int PlayerHitOrMiss(struct Player *pPlayer, struct Actor *pActor, int a3, int a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 bool _4273BB(struct Actor *pActor, struct Actor *a2, int a3, int a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 bool ActorHitOrMiss(struct Actor *pActor, struct Player *pPlayer);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 int _427546(int a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 int CalcMagicalDamageToActor(struct Actor *pActor, int a2, signed int a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 bool GetMagicalResistance(struct Actor *pActor, unsigned int uType);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 int FindClosesActor(int a2, int a3, int a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 char field_0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 extern stru319 stru_50C198; // idb
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 /* 361 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 enum ACTOR_BUFF_INDEX
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 ACTOR_BUFF_STONED = 0x5,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 ACTOR_BUFF_PARALYZED = 0x6,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51 /* 295 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 enum ObjectType
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 OBJECT_unk0 = 0x0,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 OBJECT_unk1 = 0x1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 OBJECT_Item = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 OBJECT_Actor = 0x3,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 OBJECT_Player = 0x4,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 OBJECT_Decoration = 0x5,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 OBJECT_BModel = 0x6,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69 /* 337 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70 enum AI_OBJECT_TYPE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72 AI_OBJECT_LAYING_ITEM = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73 AI_OBJECT_ACTOR = 0x3,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74 AI_OBJECT_PARTY = 0x4,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75 AI_OBJECT_DECORATION = 0x5,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 /* 264 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79 enum AIState : __int32
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81 Standing = 0x0,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82 Tethered = 0x1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
83 AttackingMelee = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84 AttackingRanged1 = 0x3,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85 Dying = 0x4,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86 Dead = 0x5,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87 Pursuing = 0x6,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88 Fleeing = 0x7,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89 Stunned = 0x8,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90 Fidgeting = 0x9,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91 Interacting = 0xA,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92 Removed = 0xB,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93 AttackingRanged2 = 0xC,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94 AttackingRanged3 = 0xD,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
95 Stoned = 0xE,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96 Paralyzed = 0xF,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97 Resurrected = 0x10,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
98 Summoned = 0x11,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99 AttackingRanged4 = 0x12,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100 Disabled = 0x13,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
103 /* 265 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
104 enum ActorAnimation : __int32
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106 ANIM_Standing = 0x0,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107 ANIM_Walking = 0x1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
108 ANIM_AtkMelee = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
109 ANIM_AtkRanged = 0x3,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 ANIM_GotHit = 0x4,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 ANIM_Dying = 0x5,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
112 ANIM_Dead = 0x6,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
113 ANIM_Bored = 0x7,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
114 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
115
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
116
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
117
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
118
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
119
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
120 /* 247 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
121 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
122 struct AIDirection
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
123 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
124 Vec3_int_ vDirection;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
125 unsigned int uDistance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
126 unsigned int uDistanceXZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
127 unsigned int uYawAngle;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
128 unsigned int uPitchAngle;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
129 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
130 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
131
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
132
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
133
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
134
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
135
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
136 /* 71 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
137 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
138 struct ActorJob
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
139 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
140 struct Vec3_short_ vPos;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
141 unsigned __int16 uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
142 unsigned __int8 uAction;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
143 unsigned __int8 uHour;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
144 unsigned __int8 uDay;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
145 unsigned __int8 uMonth;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
146 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
147 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
148
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
149
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
150 /* 66 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
151 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
152 struct Actor
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
153 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
154 //----- (0041F4C1) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
155 inline Actor()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
156 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
157 Actor *v1; // esi@1
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
158 SpellBuff *v2; // eax@1
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
159 signed int v3; // edx@1
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
160 ItemGen *v4; // edi@3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
161 signed int v5; // ebx@3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
162
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
163 v1 = this;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
164 v2 = this->pActorBuffs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
165 v3 = 22;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
166 do
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
167 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
168 v2->uSkill = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
169 v2->uPower = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
170 v2->uExpireTime = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
171 v2->uCaster = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
172 v2->uFlags = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
173 ++v2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
174 --v3;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
175 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
176 while ( v3 );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
177 v4 = this->array_000234;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
178 v5 = 4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
179 do
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
180 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
181 v4->Reset();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
182 ++v4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
183 --v5;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
184 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
185 while ( v5 );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
186 Reset();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
187 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
188
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
189 int _44FD29(int a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
190 void Reset();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
191 void Remove();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
192 void PrepareSprites(char load_sounds_if_bit1_set);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
193 unsigned int UpdateAnimation();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
194 signed int GetActorsRelation(Actor *a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
195 void SetRandomGoldIfTheresNoItem();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
196 bool CanAct();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
197 bool IsAlive();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
198 void InitializeDialogue(int bPlayerSaysHello);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
199 char _438B9B();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
200
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
201
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
202 static void __fastcall _401221(unsigned int uActorID, int *a2, unsigned int a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
203 static unsigned int __fastcall _402686(unsigned int uActorID, unsigned int a2, signed int uActionLength, struct AIDirection *a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
204 static int __fastcall _40281C(unsigned int uActorID, unsigned int a2, signed int uActionLength, struct AIDirection *pDir, int a5);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
205 static unsigned int __fastcall _402968(unsigned int uActorID, signed int edx0, int uActionLength, struct AIDirection *a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
206 static unsigned int __fastcall _402AD7(unsigned int uActorID, unsigned int a2, signed int arg0, signed int uActionLength, struct AIDirection *pDir);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
207 static void __fastcall PlaySound(unsigned int uActorID, unsigned int uSoundID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
208 static void __fastcall Die(unsigned int uActorID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
209 static unsigned int __fastcall Resurrect(unsigned int uActorID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
210 static int __fastcall _402F87(unsigned int uActorID, unsigned int uObjID, struct AIDirection *a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
211 static __int16 __fastcall _4030AD(unsigned int uActorID, signed int edx0, int arg0);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
212 static char __fastcall _4031C1_update_job(unsigned int uActorID, signed int a2, int a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
213 static void __fastcall _4032B2(unsigned int a1, unsigned int a2, int a3, int uActionLength);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
214 static unsigned int __fastcall _403476(unsigned int uActorID, signed int edx0, struct AIDirection *pDir);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
215 static unsigned int __fastcall _40368B(unsigned int uActorID, signed int edx0, struct AIDirection *pDir);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
216 static unsigned int __fastcall _403854(unsigned int uActorID, signed int edx0, struct AIDirection *pDir);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
217 static unsigned int __fastcall _403A60(unsigned int uActorID, signed int edx0, struct AIDirection *pDir);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
218 static unsigned int __fastcall _403C6C(unsigned int uActorID, signed int edx0, struct AIDirection *arg0);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
219 static void __fastcall StandAwhile(unsigned int uActorID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
220 static unsigned int __fastcall _403EB6(unsigned int uActorID, unsigned int a2, unsigned int uActionLength, struct AIDirection *a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
221 static unsigned int __fastcall _403F58(unsigned int uActorID, signed int uObjID, int uActionLength, struct AIDirection *a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
222 static unsigned int __fastcall FaceObject(unsigned int uActorID, unsigned int uObjID, int _48, struct AIDirection *a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
223 static struct AIDirection *__fastcall GetDirectionInfo(unsigned int uObj1ID, unsigned int uObj2ID, struct AIDirection *pOut, int a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
224 static signed int __fastcall Explode(unsigned int uActorID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
225 static char __fastcall _404874(unsigned int uActorID, struct AIDirection *a2, int a3, char a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
226 static void __fastcall _404AC7(unsigned int uActorID, struct AIDirection *pDir, int spellnum, int a4, unsigned int uSkillLevel);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
227 static void _43AC45(unsigned int uActorID, int a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
228 static bool _43ABB0(Actor *a1, Actor *a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
229 static bool StealFrom(unsigned int uActorID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
230 static void GiveItem(unsigned int uActorID, unsigned int uItemID, unsigned int bGive);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
231 static void ToggleFlag(signed int uActorID, unsigned int uFlag, int bToggle);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
232 static void _438CF3(unsigned int uActorID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
233 static void DrawHealthBar(Actor *a1, struct GUIWindow *a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
234 static int _43B3E0_CalcDamage(Actor *a1, signed int a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
235 static int AddBloodsplatOnDamageOverlay(unsigned int uActorID, int a2, signed int a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
236
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
237
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
238 char pActorName[32];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
239 unsigned __int16 uNPC_ID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
240 __int16 field_22;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
241 unsigned int uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
242 __int16 sCurrentHP;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
243 char field_2A[2];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
244 struct MonsterInfo pMonsterInfo;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
245 __int16 word_000084_range_attack;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
246 __int16 word_000086_some_monster_id;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
247 unsigned __int16 uActorRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
248 unsigned __int16 uActorHeight;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
249 unsigned __int16 uMovementSpeed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
250 struct Vec3_short_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
251 struct Vec3_short_ vVelocity;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
252 unsigned __int16 uYawAngle;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
253 unsigned __int16 uPitchAngle;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
254 __int16 uSectorID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
255 unsigned __int16 uCurrentActionLength;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
256 struct Vec3_short_ vInitialPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
257 struct Vec3_short_ vGuardingPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
258 unsigned __int16 uTetherDistance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
259 unsigned __int16 uAIState;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
260 unsigned __int16 uCurrentActionAnimation;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
261 unsigned __int16 uCarriedItemID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
262 char field_B6;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
263 char field_B7;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
264 unsigned int uCurrentActionTime;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
265 unsigned __int16 pSpriteIDs[8];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
266 unsigned __int16 pSoundSampleIDs[4];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
267 struct SpellBuff pActorBuffs[22];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
268 struct ItemGen array_000234[4];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
269 unsigned int uGroup;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
270 unsigned int uAlly;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
271 struct ActorJob pScheduledJobs[8];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
272 unsigned int uSummonerID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
273 unsigned int uLastCharacterIDToHit;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
274 int dword_000334_unique_name;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
275 char field_338[12];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
276 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
277 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
278
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
279
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
280
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
281
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
282
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
283
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
284 //extern Actor pMonsterInfoUI_Doll;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
285
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
286
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
287 extern Actor pActors[500];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
288 extern size_t uNumActors;