version 1.1 | | version 1.2 |
---|
| | |
* object system definitions | | * object system definitions |
* | | * |
* $Log$ | | * $Log$ |
* Revision 1.1 1999/06/14 22:12:58 donut | | * Revision 1.2 2003/03/09 06:41:01 donut |
* Initial revision | | * change byte typedef to sbyte to avoid conflict with win32 byte which is unsigned |
| | * |
| | * Revision 1.1.1.1 1999/06/14 22:12:58 donut |
| | * Import of d1x 1.37 source. |
* | | * |
* Revision 2.1 1995/03/31 12:24:10 john | | * Revision 2.1 1995/03/31 12:24:10 john |
* I had changed alt_textures from a pointer to a byte. This hosed old | | * I had changed alt_textures from a pointer to a byte. This hosed old |
| | |
| | |
// A compressed form for sending crucial data about via slow devices, such as modems and buggies. | | // A compressed form for sending crucial data about via slow devices, such as modems and buggies. |
typedef struct shortpos { | | typedef struct shortpos { |
byte bytemat[9]; | | sbyte bytemat[9]; |
short xo,yo,zo; | | short xo,yo,zo; |
short segment; | | short segment; |
short velx, vely, velz; | | short velx, vely, velz; |
| | |
//notice that it is the same as short pos minus the vel info. | | //notice that it is the same as short pos minus the vel info. |
//this is important for modified shortpos funcs | | //this is important for modified shortpos funcs |
typedef struct shorterpos { | | typedef struct shorterpos { |
byte bytemat[9]; | | sbyte bytemat[9]; |
short xo,yo,zo; | | short xo,yo,zo; |
short segment; | | short segment; |
} __pack__ shorterpos; | | } __pack__ shorterpos; |
| | |
typedef struct vclip_info { | | typedef struct vclip_info { |
int vclip_num; | | int vclip_num; |
fix frametime; | | fix frametime; |
byte framenum; | | sbyte framenum; |
} __pack__ vclip_info; | | } __pack__ vclip_info; |
| | |
//structures for different kinds of rendering | | //structures for different kinds of rendering |
| | |
fix size; // 3d size of object - for collision detection | | fix size; // 3d size of object - for collision detection |
fix shields; // Starts at maximum, when <0, object dies.. | | fix shields; // Starts at maximum, when <0, object dies.. |
vms_vector last_pos; // where object was last frame | | vms_vector last_pos; // where object was last frame |
byte contains_type; // Type of object this object contains (eg, spider contains powerup) | | sbyte contains_type; // Type of object this object contains (eg, spider contains powerup) |
byte contains_id; // ID of object this object contains (eg, id = blue type = key) | | sbyte contains_id; // ID of object this object contains (eg, id = blue type = key) |
byte contains_count;// number of objects of type:id this object contains | | sbyte contains_count;// number of objects of type:id this object contains |
byte matcen_creator;// Materialization center that created this object, high bit set if matcen-created | | sbyte matcen_creator;// Materialization center that created this object, high bit set if matcen-created |
fix lifeleft; // how long until goes away, or 7fff if immortal | | fix lifeleft; // how long until goes away, or 7fff if immortal |
| | |
| | |