annotate NPC.h @ 208:af624eaf2fc5 tip

14.01.13
author Ritor1
date Mon, 14 Jan 2013 10:39:01 +0600
parents f4450ff595fe
children
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3
2
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
4 struct NPCTopic
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
5 {
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
6 const char *pTopic;
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
7 const char *pText;
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
8 };
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
9
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
10 extern NPCTopic pNPCTopics[789];
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
11
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
12
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
13
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
14
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
15
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 /* 136 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18 struct NPCData
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20 char *pName;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 unsigned int uPortraitID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 unsigned int uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 int fame;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 int rep;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 int house;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 unsigned int uProfession;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 int greet;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 int joins;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 int field_24;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 unsigned int bDrawSomeAnim;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 int evtb;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 int evtc;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 int evtd;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 int evte;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 int evtf;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 int uSex;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 int bHasUsedTheAbility;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 int news_topic;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 /* 138 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 struct NPCProfession
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 unsigned int uHirePrice;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48 char *pBenefits;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49 char *pActionText;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50 char *pJoinText;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51 char *pDismissText;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 /* 139 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 struct NPCStats_stru0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 int field_0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61 char field_4[60];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65 /* 140 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67 struct NPCGreeting
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69 char *pGreeting1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70 char *pGreeting2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 /* 137 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 struct NPCStats
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79 {
2
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
80 inline NPCStats():
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
81 pNPCTextTXT_Raw(nullptr), pNPCTopicTXT_Raw(nullptr), pNPCDistTXT_Raw(nullptr)
26
93bf1d5f6a6d Game loading.
Nomad
parents: 2
diff changeset
82 {
93bf1d5f6a6d Game loading.
Nomad
parents: 2
diff changeset
83 uNumNPCNames[0] = uNumNPCNames[1] = 0;
93bf1d5f6a6d Game loading.
Nomad
parents: 2
diff changeset
84 }
2
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
85
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86 void Initialize2();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87 void Initialize1();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88 void Initialize();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89 void Release();
31
f4450ff595fe BLV loading (looks like) done.
Nomad
parents: 26
diff changeset
90 bool InitializeAdditionalNPCs(NPCData *a2, int a3, int a4, int a5);
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91 void _476C60();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94 NPCData pNPCData[501];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
95 NPCData pNewNPCData[501];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96 char *pNPCNames[540][2];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97 int field_13A58;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
98 int field_13A5C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99 int field_13A60;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100 int field_13A64;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101 int field_13A68;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102 NPCProfession pProfessions[58];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
103 NPCData array_13EF4[100];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
104 char *pCatchPhrases[52];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 char *pNPCNames2[500];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106 NPCStats_stru0 array_16544[77];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107 int field_17884;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
108 int field_17888;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
109 NPCGreeting pNPCGreetings[205];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 unsigned __int16 pGroups[51];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 unsigned __int16 pGroups_copy[51];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
112 int field_17FC0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
113 unsigned int uNumNewNPCs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
114 int field_17FC8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
115 unsigned int uNumNPCProfessions;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
116 unsigned int uNumNPCNames[2];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
117 char *pNPCDataTXT_Raw;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
118 char *pNPCNamesTXT_Raw;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
119 char *pNPCProfTXT_Raw;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
120 char *pNPCNewsTXT_Raw;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
121 char *pNPCTopicTXT_Raw;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
122 char *pNPCTextTXT_Raw;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
123 char *pNPCDistTXT_Raw;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
124 char *pNPCGreetTXT_Raw;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
125 char *pNCPGroupTXT_Raw;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
126 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
127 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
128