annotate NPC.h @ 237:2799737f8a74

more text parsers refactor
author Gloval
date Mon, 18 Feb 2013 00:47:36 +0400
parents 207b2492e14b
children 37dcbe8f3cca 48f21f569328
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 struct NPCTopic
Ritor1
parents:
diff changeset
5 {
Ritor1
parents:
diff changeset
6 const char *pTopic;
Ritor1
parents:
diff changeset
7 const char *pText;
Ritor1
parents:
diff changeset
8 };
Ritor1
parents:
diff changeset
9
Ritor1
parents:
diff changeset
10 extern NPCTopic pNPCTopics[789];
Ritor1
parents:
diff changeset
11
Ritor1
parents:
diff changeset
12
Ritor1
parents:
diff changeset
13
Ritor1
parents:
diff changeset
14
Ritor1
parents:
diff changeset
15
Ritor1
parents:
diff changeset
16 /* 136 */
Ritor1
parents:
diff changeset
17 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
18 struct NPCData
Ritor1
parents:
diff changeset
19 {
Ritor1
parents:
diff changeset
20 char *pName;
Ritor1
parents:
diff changeset
21 unsigned int uPortraitID;
188
207b2492e14b AddItem crash
Nomad
parents: 130
diff changeset
22 unsigned int uFlags; // & 0x80 no greeting on dialogue start
0
Ritor1
parents:
diff changeset
23 int fame;
Ritor1
parents:
diff changeset
24 int rep;
Ritor1
parents:
diff changeset
25 int house;
Ritor1
parents:
diff changeset
26 unsigned int uProfession;
Ritor1
parents:
diff changeset
27 int greet;
Ritor1
parents:
diff changeset
28 int joins;
Ritor1
parents:
diff changeset
29 int field_24;
Ritor1
parents:
diff changeset
30 unsigned int bDrawSomeAnim;
130
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
31 int _anim_current_time; //evtb
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
32 int _anim_end_time; //evtc
0
Ritor1
parents:
diff changeset
33 int evtd;
Ritor1
parents:
diff changeset
34 int evte;
Ritor1
parents:
diff changeset
35 int evtf;
Ritor1
parents:
diff changeset
36 int uSex;
Ritor1
parents:
diff changeset
37 int bHasUsedTheAbility;
Ritor1
parents:
diff changeset
38 int news_topic;
Ritor1
parents:
diff changeset
39 };
Ritor1
parents:
diff changeset
40 #pragma pack(pop)
Ritor1
parents:
diff changeset
41
Ritor1
parents:
diff changeset
42
Ritor1
parents:
diff changeset
43 /* 138 */
Ritor1
parents:
diff changeset
44 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
45 struct NPCProfession
Ritor1
parents:
diff changeset
46 {
Ritor1
parents:
diff changeset
47 unsigned int uHirePrice;
Ritor1
parents:
diff changeset
48 char *pBenefits;
Ritor1
parents:
diff changeset
49 char *pActionText;
Ritor1
parents:
diff changeset
50 char *pJoinText;
Ritor1
parents:
diff changeset
51 char *pDismissText;
Ritor1
parents:
diff changeset
52 };
Ritor1
parents:
diff changeset
53 #pragma pack(pop)
Ritor1
parents:
diff changeset
54
Ritor1
parents:
diff changeset
55
Ritor1
parents:
diff changeset
56 /* 139 */
Ritor1
parents:
diff changeset
57 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
58 struct NPCStats_stru0
Ritor1
parents:
diff changeset
59 {
237
2799737f8a74 more text parsers refactor
Gloval
parents: 188
diff changeset
60 int field_0; //summ
2799737f8a74 more text parsers refactor
Gloval
parents: 188
diff changeset
61 char field_4[60]; //prof position
0
Ritor1
parents:
diff changeset
62 };
Ritor1
parents:
diff changeset
63 #pragma pack(pop)
Ritor1
parents:
diff changeset
64
Ritor1
parents:
diff changeset
65 /* 140 */
Ritor1
parents:
diff changeset
66 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
67 struct NPCGreeting
Ritor1
parents:
diff changeset
68 {
Ritor1
parents:
diff changeset
69 char *pGreeting1;
Ritor1
parents:
diff changeset
70 char *pGreeting2;
Ritor1
parents:
diff changeset
71 };
Ritor1
parents:
diff changeset
72 #pragma pack(pop)
Ritor1
parents:
diff changeset
73
Ritor1
parents:
diff changeset
74
Ritor1
parents:
diff changeset
75
Ritor1
parents:
diff changeset
76 /* 137 */
Ritor1
parents:
diff changeset
77 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
78 struct NPCStats
Ritor1
parents:
diff changeset
79 {
Ritor1
parents:
diff changeset
80 inline NPCStats():
Ritor1
parents:
diff changeset
81 pNPCTextTXT_Raw(nullptr), pNPCTopicTXT_Raw(nullptr), pNPCDistTXT_Raw(nullptr)
Ritor1
parents:
diff changeset
82 {
Ritor1
parents:
diff changeset
83 uNumNPCNames[0] = uNumNPCNames[1] = 0;
Ritor1
parents:
diff changeset
84 }
Ritor1
parents:
diff changeset
85
Ritor1
parents:
diff changeset
86 void Initialize2();
Ritor1
parents:
diff changeset
87 void Initialize1();
Ritor1
parents:
diff changeset
88 void Initialize();
Ritor1
parents:
diff changeset
89 void Release();
Ritor1
parents:
diff changeset
90 bool InitializeAdditionalNPCs(NPCData *a2, int a3, int a4, int a5);
Ritor1
parents:
diff changeset
91 void _476C60();
Ritor1
parents:
diff changeset
92
237
2799737f8a74 more text parsers refactor
Gloval
parents: 188
diff changeset
93
0
Ritor1
parents:
diff changeset
94 NPCData pNPCData[501];
Ritor1
parents:
diff changeset
95 NPCData pNewNPCData[501];
Ritor1
parents:
diff changeset
96 char *pNPCNames[540][2];
Ritor1
parents:
diff changeset
97 int field_13A58;
Ritor1
parents:
diff changeset
98 int field_13A5C;
Ritor1
parents:
diff changeset
99 int field_13A60;
Ritor1
parents:
diff changeset
100 int field_13A64;
Ritor1
parents:
diff changeset
101 int field_13A68;
Ritor1
parents:
diff changeset
102 NPCProfession pProfessions[58];
Ritor1
parents:
diff changeset
103 NPCData array_13EF4[100];
Ritor1
parents:
diff changeset
104 char *pCatchPhrases[52];
Ritor1
parents:
diff changeset
105 char *pNPCNames2[500];
237
2799737f8a74 more text parsers refactor
Gloval
parents: 188
diff changeset
106 NPCStats_stru0 array_16544[77]; //16544h proffesion position in area
0
Ritor1
parents:
diff changeset
107 int field_17884;
Ritor1
parents:
diff changeset
108 int field_17888;
Ritor1
parents:
diff changeset
109 NPCGreeting pNPCGreetings[205];
Ritor1
parents:
diff changeset
110 unsigned __int16 pGroups[51];
Ritor1
parents:
diff changeset
111 unsigned __int16 pGroups_copy[51];
Ritor1
parents:
diff changeset
112 int field_17FC0;
Ritor1
parents:
diff changeset
113 unsigned int uNumNewNPCs;
Ritor1
parents:
diff changeset
114 int field_17FC8;
Ritor1
parents:
diff changeset
115 unsigned int uNumNPCProfessions;
Ritor1
parents:
diff changeset
116 unsigned int uNumNPCNames[2];
Ritor1
parents:
diff changeset
117 char *pNPCDataTXT_Raw;
Ritor1
parents:
diff changeset
118 char *pNPCNamesTXT_Raw;
Ritor1
parents:
diff changeset
119 char *pNPCProfTXT_Raw;
Ritor1
parents:
diff changeset
120 char *pNPCNewsTXT_Raw;
Ritor1
parents:
diff changeset
121 char *pNPCTopicTXT_Raw;
Ritor1
parents:
diff changeset
122 char *pNPCTextTXT_Raw;
Ritor1
parents:
diff changeset
123 char *pNPCDistTXT_Raw;
Ritor1
parents:
diff changeset
124 char *pNPCGreetTXT_Raw;
Ritor1
parents:
diff changeset
125 char *pNCPGroupTXT_Raw;
Ritor1
parents:
diff changeset
126 };
Ritor1
parents:
diff changeset
127 #pragma pack(pop)
Ritor1
parents:
diff changeset
128