1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
|
|
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
|
|
7 | * |
5 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify |
6 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * it under the terms of the GNU General Public License as published by |
7 | * the terms of the Affero GNU General Public License as published by the |
10 | * the Free Software Foundation, either version 3 of the License, or |
8 | * Free Software Foundation, either version 3 of the License, or (at your |
11 | * (at your option) any later version. |
9 | * option) any later version. |
12 | * |
10 | * |
13 | * This program is distributed in the hope that it will be useful, |
11 | * This program is distributed in the hope that it will be useful, |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | * GNU General Public License for more details. |
14 | * GNU General Public License for more details. |
17 | * |
15 | * |
18 | * You should have received a copy of the GNU General Public License |
16 | * You should have received a copy of the Affero GNU General Public License |
19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | * and the GNU General Public License along with this program. If not, see |
|
|
18 | * <http://www.gnu.org/licenses/>. |
20 | * |
19 | * |
21 | * The authors can be reached via e-mail to <support@deliantra.net> |
20 | * The authors can be reached via e-mail to <support@deliantra.net> |
22 | */ |
21 | */ |
23 | |
22 | |
24 | #ifndef CLIENT_H |
23 | #ifndef CLIENT_H |
… | |
… | |
180 | bool ACC (RW, sent_scroll); |
179 | bool ACC (RW, sent_scroll); |
181 | bool ACC (RW, sound); /* does the client want sound */ |
180 | bool ACC (RW, sound); /* does the client want sound */ |
182 | bool ACC (RW, newmapcmd); /* Send newmap command when entering new map SMACFIGGEN */ |
181 | bool ACC (RW, newmapcmd); /* Send newmap command when entering new map SMACFIGGEN */ |
183 | bool ACC (RW, plugincmd); // extend the protocol through a plug-in */ |
182 | bool ACC (RW, plugincmd); // extend the protocol through a plug-in */ |
184 | bool ACC (RW, mapinfocmd); // return map info and send map change info |
183 | bool ACC (RW, mapinfocmd); // return map info and send map change info |
185 | uint8_t ACC (RW, extcmd); // call into extensions/plugins |
184 | uint8_t ACC (RW, extcmd); // call into extensions/plugins |
186 | bool ACC (RW, extmap); // extend map command with extra data |
|
|
187 | bool ACC (RW, update_look); /* If true, we need to send the look window */ |
185 | bool ACC (RW, update_look); /* If true, we need to send the look window */ |
188 | bool ACC (RW, has_readable_type); /* If true client accept additional text information */ |
186 | bool ACC (RW, has_readable_type); /* If true client accept additional text information */ |
189 | /* used to arrange text in books, scrolls, or scripted dialogs */ |
187 | /* used to arrange text in books, scrolls, or scripted dialogs */ |
190 | bool ACC (RW, monitor_spells); /* Client wishes to be informed when their spell list changes */ |
188 | bool ACC (RW, monitor_spells); /* Client wishes to be informed when their spell list changes */ |
191 | bool ACC (RW, smoothing); // deliantra-style smoothing |
189 | bool ACC (RW, smoothing); // deliantra-style smoothing |
192 | bool ACC (RW, can_msg); // deliantra-style text messages |
|
|
193 | |
190 | |
194 | bool ACC (RW, force_newmap); // force a newmap before next map update |
191 | bool ACC (RW, force_newmap); // force a newmap before next map update |
195 | uint32 ACC (RW, supported_readables); /* each bit is a readable supported by client */ |
192 | uint32 ACC (RW, supported_readables); /* each bit is a readable supported by client */ |
196 | uint32 ACC (RW, cs_version), ACC (RW, sc_version); /* versions of the client */ |
193 | uint32 ACC (RW, cs_version), ACC (RW, sc_version); /* versions of the client */ |
197 | uint16 ACC (RW, look_position); /* start of drawing of look window */ |
194 | uint16 ACC (RW, look_position); /* start of drawing of look window */ |
… | |
… | |
206 | shstr ACC (RW, version); // CF+ client name/version |
203 | shstr ACC (RW, version); // CF+ client name/version |
207 | uint8 ACC (RW, faceset); // CF+ selected faceset |
204 | uint8 ACC (RW, faceset); // CF+ selected faceset |
208 | |
205 | |
209 | tstamp ACC (RW, last_send); // last data send on socket. |
206 | tstamp ACC (RW, last_send); // last data send on socket. |
210 | |
207 | |
|
|
208 | float ACC (RW, socket_timeout); /* after how many seconds of no ack do we declare dead */ |
211 | int ACC (RW, rate_avail); // current rate balance |
209 | int ACC (RW, rate_avail); // current rate balance |
212 | int ACC (RW, max_rate); // max. # of bytes to send per tick |
210 | int ACC (RW, max_rate); // max. # of bytes to send per tick |
213 | faceidx ACC (RW, scrub_idx); // which face to send next |
211 | faceidx ACC (RW, scrub_idx); // which face to send next |
214 | int ACC (RW, bg_scrub); // how many ticks till the next background face send |
212 | int ACC (RW, bg_scrub); // how many ticks till the next background face send |
215 | |
213 | |