annotate ObjectList.h @ 1884:c77de46b31b1

Actor::AI_Pursue1 cleaned up
author Grumpy7
date Sat, 19 Oct 2013 07:02:05 +0200
parents 7ef4b64f6329
children 92511cd8fcdb
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
Ritor1
parents:
diff changeset
5
Ritor1
parents:
diff changeset
6 /* 324 */
Ritor1
parents:
diff changeset
7 enum OBJECT_DESC_FLAGS
Ritor1
parents:
diff changeset
8 {
Ritor1
parents:
diff changeset
9 OBJECT_DESC_NO_SPRITE = 0x1,
Ritor1
parents:
diff changeset
10 OBJECT_DESC_NO_COLLISION = 0x2,
Ritor1
parents:
diff changeset
11 OBJECT_DESC_TEMPORARY = 0x4,
Ritor1
parents:
diff changeset
12 OBJECT_DESC_SFT_LIFETIME = 0x8,
Ritor1
parents:
diff changeset
13 OBJECT_DESC_UNPICKABLE = 0x10,
Ritor1
parents:
diff changeset
14 OBJECT_DESC_NO_GRAVITY = 0x20,
Ritor1
parents:
diff changeset
15 OBJECT_DESC_INTERACTABLE = 0x40,
Ritor1
parents:
diff changeset
16 OBJECT_DESC_BOUNCE = 0x80,
Ritor1
parents:
diff changeset
17 OBJECT_DESC_TRIAL_PARTICLE = 0x100,
Ritor1
parents:
diff changeset
18 OBJECT_DESC_TRIAL_FIRE = 0x200,
Ritor1
parents:
diff changeset
19 OBJECT_DESC_TRIAL_LINE = 0x400,
Ritor1
parents:
diff changeset
20 };
Ritor1
parents:
diff changeset
21
Ritor1
parents:
diff changeset
22
Ritor1
parents:
diff changeset
23
Ritor1
parents:
diff changeset
24
Ritor1
parents:
diff changeset
25 /* 56 */
Ritor1
parents:
diff changeset
26 #pragma pack(push, 1)
1477
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
27 struct ObjectDesc_mm6
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
28 {
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
29 inline bool NoSprite() const {return uFlags & OBJECT_DESC_NO_SPRITE;}
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
30
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
31 char field_0[32];
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
32 __int16 uObjectID;
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
33 __int16 uRadius;
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
34 __int16 uHeight;
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
35 __int16 uFlags;
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
36 unsigned __int16 uSpriteID;
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
37 __int16 uLifetime;
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
38 unsigned short uParticleTrailColor;
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
39 __int16 uSpeed;
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
40 char uParticleTrailColorR;
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
41 char uParticleTrailColorG;
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
42 char uParticleTrailColorB;
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
43 char field_35_clr;
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
44 };
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
45
0
Ritor1
parents:
diff changeset
46 struct ObjectDesc
Ritor1
parents:
diff changeset
47 {
430
58b71c1af7d8 Objects are drawn (items, spells sfx)
Nomad
parents: 0
diff changeset
48 inline bool NoSprite() const {return uFlags & OBJECT_DESC_NO_SPRITE;}
58b71c1af7d8 Objects are drawn (items, spells sfx)
Nomad
parents: 0
diff changeset
49
0
Ritor1
parents:
diff changeset
50 char field_0[32];
Ritor1
parents:
diff changeset
51 __int16 uObjectID;
Ritor1
parents:
diff changeset
52 __int16 uRadius;
Ritor1
parents:
diff changeset
53 __int16 uHeight;
Ritor1
parents:
diff changeset
54 __int16 uFlags;
Ritor1
parents:
diff changeset
55 unsigned __int16 uSpriteID;
Ritor1
parents:
diff changeset
56 __int16 uLifetime;
Ritor1
parents:
diff changeset
57 unsigned int uParticleTrailColor;
Ritor1
parents:
diff changeset
58 __int16 uSpeed;
Ritor1
parents:
diff changeset
59 char uParticleTrailColorR;
Ritor1
parents:
diff changeset
60 char uParticleTrailColorG;
Ritor1
parents:
diff changeset
61 char uParticleTrailColorB;
Ritor1
parents:
diff changeset
62 char field_35_clr;
Ritor1
parents:
diff changeset
63 char field_36_clr;
Ritor1
parents:
diff changeset
64 char field_37_clr;
Ritor1
parents:
diff changeset
65 };
Ritor1
parents:
diff changeset
66 #pragma pack(pop)
Ritor1
parents:
diff changeset
67
Ritor1
parents:
diff changeset
68 /* 57 */
Ritor1
parents:
diff changeset
69 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
70 struct ObjectList
Ritor1
parents:
diff changeset
71 {
Ritor1
parents:
diff changeset
72 inline ObjectList(): //----- (004583D5)
Ritor1
parents:
diff changeset
73 uNumObjects(0), pObjects(nullptr)
Ritor1
parents:
diff changeset
74 {}
Ritor1
parents:
diff changeset
75
Ritor1
parents:
diff changeset
76 void ToFile();
1477
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 430
diff changeset
77 void FromFile(void *data_mm6, void *data_mm7, void *data_mm8);
0
Ritor1
parents:
diff changeset
78 bool FromFileTxt(const char *Args);
Ritor1
parents:
diff changeset
79 void InitializeSprites();
Ritor1
parents:
diff changeset
80 __int16 ObjectIDByItemID(unsigned __int16 uItemID);
Ritor1
parents:
diff changeset
81
Ritor1
parents:
diff changeset
82
Ritor1
parents:
diff changeset
83 unsigned int uNumObjects;
Ritor1
parents:
diff changeset
84 struct ObjectDesc *pObjects;
Ritor1
parents:
diff changeset
85 };
Ritor1
parents:
diff changeset
86 #pragma pack(pop)
Ritor1
parents:
diff changeset
87
Ritor1
parents:
diff changeset
88 extern struct ObjectList *pObjectList;