annotate NPC.h @ 2:2ca04ccb612a

NoCD, main menu, various
author Nomad
date Wed, 10 Oct 2012 14:21:15 +0200
parents 8b8875f5b359
children 93bf1d5f6a6d
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)
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
82 {}
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
83
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84 void Initialize2();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85 void Initialize1();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86 void Initialize();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87 void Release();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88 int InitializeAdditionalNPCs(NPCData *a2, int a3, int a4, int a5);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89 void _476C60();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92 NPCData pNPCData[501];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93 NPCData pNewNPCData[501];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94 char *pNPCNames[540][2];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
95 int field_13A58;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96 int field_13A5C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97 int field_13A60;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
98 int field_13A64;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99 int field_13A68;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100 NPCProfession pProfessions[58];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101 NPCData array_13EF4[100];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102 char *pCatchPhrases[52];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
103 char *pNPCNames2[500];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
104 NPCStats_stru0 array_16544[77];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 int field_17884;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106 int field_17888;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107 NPCGreeting pNPCGreetings[205];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
108 unsigned __int16 pGroups[51];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
109 unsigned __int16 pGroups_copy[51];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 int field_17FC0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 unsigned int uNumNewNPCs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
112 int field_17FC8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
113 unsigned int uNumNPCProfessions;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
114 unsigned int uNumNPCNames[2];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
115 char *pNPCDataTXT_Raw;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
116 char *pNPCNamesTXT_Raw;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
117 char *pNPCProfTXT_Raw;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
118 char *pNPCNewsTXT_Raw;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
119 char *pNPCTopicTXT_Raw;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
120 char *pNPCTextTXT_Raw;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
121 char *pNPCDistTXT_Raw;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
122 char *pNPCGreetTXT_Raw;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
123 char *pNCPGroupTXT_Raw;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
124 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
125 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
126