-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdata_client.cpp
205 lines (159 loc) · 3.96 KB
/
data_client.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
#include "data_client.h"
void data_client_init(void) {
midiout_handle=NULL;
midiout_setup=FALSE;
U6O_DISABLEMUSIC=FALSE;
U6O_DISABLEJOYSTICK=FALSE;
fonts_added=FALSE;
intro_timer=0;
fnt1=NULL;
fnt2=NULL;
fnt3=NULL;
fnt4=NULL;
fnt5=NULL;
fnt6=NULL;
fnt7=NULL;
fnt1naa=NULL;
systemfont=NULL;
intro_ultimavi=NULL;
intro_ultimavi2=NULL;
x5option=0;
mixer_volume=255;
mixer_mute=0;
//mcb = {0}; // can't init here
customportrait_upload=0;
clientframe=0;
ctpx=0;ctpy=0; //client: screen offset
ctpx2=0;ctpy2=0; //client: selected partymember offset
cobjtype=0; //client: object type (selected partymember)
pw_encrypt=PW_ENCRYPTION;
setup_message=FALSE;
cur_type=1;
userkey=0;
userspell=0;
userspellbook=0;
portlast=0;
deadglobalmessage=0;
keyframe_backup=0;
oceantiles=0,rivertiles=0;
britlens=0,garglens=0;
xray=0;
wizardeyetimeleft=0.0f;
ktar_display=0;//seconds to display keyboard targetting numbers for
talkprev=0;
directionalmove_only=0;
tremor=0;
clientplayerid=0;//only valid if not 0
namelast=txtnew();
localvoicemessage_return=0;
autoscroll=0.0f;
tempregkey;
sysban=0.0f;
namecolour=0xFFFFFF;
voicechat_listeningplayers=FALSE;
voicechat_listeningplayeri=0;
voicechat_listeningplayervolume[256];
//VOICE CHAT 1.0+
voicechat_permission=FALSE;
voicechat_permissionrequested=FALSE;
voicechat_recording=0;
voicechat_mciwait=0.0f;
voicechat_devicedeallocrequired=0;
voicechat_recordtime=0.0f;
//portrait look
portraitlook_wait=0.0f;
portraitlook_portrait=0;
portraitlook_equip=0;
portraitlook_type[8];
portraitlook_plusbonus[8];
portraitlook_name=NULL;
portraitlook_namecolour=0xFFFFFF;
//cloud info
noclouds=FALSE;
cloudidealnum=8;
cloudloaded=0;
firstclouds=1;
wDeviceID=0;
endgame=0; //1=play endgame sequence
endgame_timer=0;
endgame_message=0;
omx=0;omy=0;omb=0; //used by frame.h
omx2=0;omy2=0;
vf_mb2_x=0xFFFF;vf_mb2_y=0xFFFF;
U6O_WALKTHRU_REC=FALSE;
U6O_WALKTHRU=TRUE;
//master volume controls
u6ovolume=128;
u6omidivolume=128;
u6omidisetup=0;
u6ovoicevolume=128;
//wav
wavinfo_loaded=FALSE;
//midi
u6omidi=NULL;
midiinfo_loaded=FALSE;
windowchange=FALSE;
gotfocus=TRUE; //TRUE if program is selected
scrx=512*2; scry=384*2; //size of the window required by the program
smallwindow=FALSE; //use a 512x384 window
dxrefresh=FALSE;
nodisplay=FALSE;
isit=FALSE;
host_minimize=!U6O_DEBUG;
setupfail=FALSE;
u6o_sound=TRUE;
//tagxy=0; //can't init this struct
taghdc=0;
musickeyboard=NULL;
clientsettingsvalid=FALSE;
moonlight=0;
//wind (local) // luteijn: maybe we should make this global, or at least shared within an area of influence? TODO
windx2=0;
windy2=0;
textdisplayi=-1; //ideal line to finish on (can be changed by user)
textdisplayupdate=0;
ls_off=0;
ls_off_add=0;
ls2_off=0;
ls2_off_add=0;
ls2_p=0;
tshiftnum=NULL;
shiftnum_show=0;
idlstn=-1;
qkstf_update=TRUE;
inprec=0; //input receiving
inprec_global=0; //input receiving global
osn=-1;
u6o_error_file=NULL;
keyframe=0;keyframe2=0;keyframe3=0;keyframe15=0;keyframe31=0; //animation/palette index (0-7)
action=0; //active action key
portrait_request_txt=NULL;
PORTRAIT_UNAVAILABLE=NULL;
mobj=NULL; //selected (mouse) object *local
moon1=NULL;
CLIENTplayer=NULL;
tplay=NULL; //client temp. player struct
stolenitemwarningn=-1;
inpmess=txtnew();
inpmess_selected=-1;
walkthru_x=0;
walkthru_y=0;
walkthru_pos_skip=0;
walkthru_pos=0;
u6o_user_name=txtnew();
u6o_user_password=txtnew();
u6o_name=txtnew();
u6o_malefemale=0;//0=male, 1=female
u6o_portrait=2;
u6o_type=0;
u6o_createcharacter=0;//obselete!
u6o_new_user_password=txtnew();
midi_song=0; //handle to current midi
midi_loaded=-1;
midi_background=0;
midi_foreground=-1;
midi_foreground_wait=0.0f;
intro=200; //part of intro to process (0=ingame!)
cltset2_restored=0;
}
/* end */