version 1.4 | | version 1.5 |
---|
| | |
/* | | /* |
* static char *rcsid_object_h = | | * static char *rcsid_object_h = |
* "$Id: object.h,v 1.4 1999/09/18 07:38:06 damn Exp $"; | | * "$Id: object.h,v 1.5 2000/05/26 09:50:47 jec Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
#ifndef OBJECT_H | | #ifndef OBJECT_H |
#define OBJECT_H | | #define OBJECT_H |
| | |
| | typedef uint32 tag_t; |
| | |
typedef struct obj { | | typedef struct obj { |
/* These variables are not changed by copy_object(): */ | | /* These variables are not changed by copy_object(): */ |
struct pl *contr; /* Pointer to the player which control this object */ | | struct pl *contr; /* Pointer to the player which control this object */ |
| | |
struct obj *head; /* Points to the main object of a large body */ | | struct obj *head; /* Points to the main object of a large body */ |
struct mapdef *map; /* Pointer to the map in which this object is present */ | | struct mapdef *map; /* Pointer to the map in which this object is present */ |
| | |
uint32 count; /* Which nr. of object created this is. */ | | tag_t count; /* Which nr. of object created this is. */ |
uint16 refcount; /* How many objects points to this object */ | | uint16 refcount; /* How many objects points to this object */ |
struct oblnk *sk_list; /* Pointer to linked list of skill objects for this ob*/ | | struct oblnk *sk_list; /* Pointer to linked list of skill objects for this ob*/ |
| | |
| | |
signed long weight; /* Attributes of the object */ | | signed long weight; /* Attributes of the object */ |
signed long carrying; /* How much weight this object contains */ | | signed long carrying; /* How much weight this object contains */ |
uint32 flags[4]; /* various flags */ | | uint32 flags[4]; /* various flags */ |
uint32 ownercount; /* What count the owner had (in case owner */ | | tag_t ownercount; /* What count the owner had (in case owner */ |
/* has been freed) */ | | /* has been freed) */ |
struct treasureliststruct *randomitems; /* Items to be generated */ | | struct treasureliststruct *randomitems; /* Items to be generated */ |
#if 0 | | #if 0 |