1 | /* |
1 | /* |
2 | * static char *rcsid_object_h = |
2 | * static char *rcsid_object_h = |
3 | * "$Id: object.h,v 1.2 2006/02/07 23:29:55 root Exp $"; |
3 | * "$Id: object.h,v 1.3 2006/02/22 18:53:48 elmex Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
34 | #define BODY_ARMS 1 |
34 | #define BODY_ARMS 1 |
35 | |
35 | |
36 | /* See common/item.c */ |
36 | /* See common/item.c */ |
37 | |
37 | |
38 | typedef struct Body_Locations { |
38 | typedef struct Body_Locations { |
39 | char *save_name; /* Name used to load/save it to disk */ |
39 | const char *save_name; /* Name used to load/save it to disk */ |
40 | char *use_name; /* Name used when describing an item we can use */ |
40 | const char *use_name; /* Name used when describing an item we can use */ |
41 | char *nonuse_name; /* Name to describe objects we can't use */ |
41 | const char *nonuse_name; /* Name to describe objects we can't use */ |
42 | } Body_Locations; |
42 | } Body_Locations; |
43 | |
43 | |
44 | extern Body_Locations body_locations[NUM_BODY_LOCATIONS]; |
44 | extern Body_Locations body_locations[NUM_BODY_LOCATIONS]; |
45 | |
45 | |
46 | typedef struct _event |
46 | typedef struct _event |
… | |
… | |
237 | sint32 elevation; /* elevation of this terrain - not currently used */ |
237 | sint32 elevation; /* elevation of this terrain - not currently used */ |
238 | uint8 smoothlevel; /* how to smooth this square around*/ |
238 | uint8 smoothlevel; /* how to smooth this square around*/ |
239 | |
239 | |
240 | MoveType move_type; /* Type of movement this object uses */ |
240 | MoveType move_type; /* Type of movement this object uses */ |
241 | MoveType move_block; /* What movement types this blocks */ |
241 | MoveType move_block; /* What movement types this blocks */ |
|
|
242 | MoveType move_allow; /* What movement types explicitly allowd */ |
242 | MoveType move_on; /* Move types affected moving on to this space */ |
243 | MoveType move_on; /* Move types affected moving on to this space */ |
243 | MoveType move_off; /* Move types affected moving off this space */ |
244 | MoveType move_off; /* Move types affected moving off this space */ |
244 | MoveType move_slow; /* Movement types this slows down */ |
245 | MoveType move_slow; /* Movement types this slows down */ |
245 | float move_slow_penalty; /* How much this slows down the object */ |
246 | float move_slow_penalty; /* How much this slows down the object */ |
246 | |
247 | |