… | |
… | |
41 | */ |
41 | */ |
42 | |
42 | |
43 | |
43 | |
44 | #ifndef NETWORK_H |
44 | #ifndef NETWORK_H |
45 | #define NETWORK_H |
45 | #define NETWORK_H |
|
|
46 | |
|
|
47 | //+GPL |
46 | |
48 | |
47 | #include <cstdarg> |
49 | #include <cstdarg> |
48 | |
50 | |
49 | /* Maximum size of any packet we expect. |
51 | /* Maximum size of any packet we expect. |
50 | * |
52 | * |
… | |
… | |
150 | #define SF_FIREON 0x01 |
152 | #define SF_FIREON 0x01 |
151 | #define SF_RUNON 0x02 |
153 | #define SF_RUNON 0x02 |
152 | |
154 | |
153 | /* Flags for the item command */ |
155 | /* Flags for the item command */ |
154 | enum {a_none, a_readied, a_wielded, a_worn, a_active, a_applied}; |
156 | enum {a_none, a_readied, a_wielded, a_worn, a_active, a_applied}; |
|
|
157 | |
155 | #define F_APPLIED 0x000F |
158 | #define F_APPLIED 0x000F |
156 | #define F_LOCATION 0x00F0 |
159 | #define F_LOCATION 0x00F0 |
157 | #define F_UNPAID 0x0200 |
160 | #define F_UNPAID 0x0200 |
158 | #define F_MAGIC 0x0400 |
161 | #define F_MAGIC 0x0400 |
159 | #define F_CURSED 0x0800 |
162 | #define F_CURSED 0x0800 |
… | |
… | |
193 | #define UPD_SP_DAMAGE 0x04 |
196 | #define UPD_SP_DAMAGE 0x04 |
194 | |
197 | |
195 | #define SOUND_NORMAL 0 |
198 | #define SOUND_NORMAL 0 |
196 | #define SOUND_SPELL 1 |
199 | #define SOUND_SPELL 1 |
197 | |
200 | |
|
|
201 | //-GPL |
|
|
202 | |
198 | struct data |
203 | struct data |
199 | { |
204 | { |
200 | unsigned int len; |
205 | unsigned int len; |
201 | const void *ptr; |
206 | const void *ptr; |
202 | |
207 | |