ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/object.h
(Generate patch)

Comparing deliantra/server/include/object.h (file contents):
Revision 1.116 by root, Mon May 7 03:05:58 2007 UTC vs.
Revision 1.117 by root, Mon May 7 04:21:11 2007 UTC

92 * e.g. ->copy_to () 92 * e.g. ->copy_to ()
93 */ 93 */
94 94
95struct body_slot 95struct body_slot
96{ 96{
97 sint8 info:4; /* body info as loaded from the file */ 97 signed char info:4; /* body info as loaded from the file */
98 sint8 used:4; /* Calculated value based on items equipped */ 98 signed char used:4; /* Calculated value based on items equipped */
99}; 99};
100 100
101INTERFACE_CLASS (object) 101INTERFACE_CLASS (object)
102// these are being copied 102// these are being copied
103struct object_copy : attachable 103struct object_copy : attachable
104{ 104{
105 typedef bitset<NUM_FLAGS> flags_t; 105 typedef bitset<NUM_FLAGS> flags_t;
106 106
107 sint16 ACC (RW, x), ACC (RW, y); /* Position in the map for this object */ 107 sint16 ACC (RW, x), ACC (RW, y); /* Position in the map for this object */
108
109 uint8 ACC (RW, type); /* PLAYER, BULLET, etc. See define.h */
110 uint8 ACC (RW, subtype); /* subtype of object */
108 sint8 ACC (RW, direction); /* Means the object is moving that way. */ 111 sint8 ACC (RW, direction); /* Means the object is moving that way. */
109 sint8 ACC (RW, facing); /* Object is oriented/facing that way. */ 112 sint8 ACC (RW, facing); /* Object is oriented/facing that way. */
113
110 shstr ACC (RW, name); /* The name of the object, obviously... */ 114 shstr ACC (RW, name); /* The name of the object, obviously... */
111 shstr ACC (RW, name_pl); /* The plural name of the object */ 115 shstr ACC (RW, name_pl); /* The plural name of the object */
112 shstr ACC (RW, title); /* Of foo, etc */ 116 shstr ACC (RW, title); /* Of foo, etc */
113 shstr ACC (RW, race); /* human, goblin, dragon, etc */ 117 shstr ACC (RW, race); /* human, goblin, dragon, etc */
114 shstr ACC (RW, slaying); /* Which race to do double damage to */ 118 shstr ACC (RW, slaying); /* Which race to do double damage to */
133 float ACC (RW, speed); /* The overall speed of this object */ 137 float ACC (RW, speed); /* The overall speed of this object */
134 float ACC (RW, speed_left); /* How much speed is left to spend this round */ 138 float ACC (RW, speed_left); /* How much speed is left to spend this round */
135 uint32 ACC (RW, nrof); /* How many of the objects */ 139 uint32 ACC (RW, nrof); /* How many of the objects */
136 140
137 /* This next big block are basically used for monsters and equipment */ 141 /* This next big block are basically used for monsters and equipment */
138 uint8 ACC (RW, type); /* PLAYER, BULLET, etc. See define.h */
139 uint8 ACC (RW, subtype); /* subtype of object */
140 uint16 ACC (RW, client_type); /* Public type information. see doc/Developers/objects */ 142 uint16 ACC (RW, client_type); /* Public type information. see doc/Developers/objects */
143
141 sint16 ACC (RW, resist[NROFATTACKS]); /* Resistance adjustments for attacks */ 144 sint16 ACC (RW, resist[NROFATTACKS]); /* Resistance adjustments for attacks */
142 uint32 ACC (RW, attacktype); /* Bitmask of attacks this object does */ 145 uint32 ACC (RW, attacktype); /* Bitmask of attacks this object does */
143 uint32 ACC (RW, path_attuned);/* Paths the object is attuned to */ 146 uint32 ACC (RW, path_attuned);/* Paths the object is attuned to */
144 uint32 ACC (RW, path_repelled); /* Paths the object is repelled from */ 147 uint32 ACC (RW, path_repelled); /* Paths the object is repelled from */
145 uint32 ACC (RW, path_denied); /* Paths the object is denied access to */ 148 uint32 ACC (RW, path_denied); /* Paths the object is denied access to */
185 * Note that other fields are used - these files are basically 188 * Note that other fields are used - these files are basically
186 * only used in spells. 189 * only used in spells.
187 */ 190 */
188 sint16 ACC (RW, duration); /* How long the spell lasts */ 191 sint16 ACC (RW, duration); /* How long the spell lasts */
189 sint16 ACC (RW, casting_time);/* time left before spell goes off */ 192 sint16 ACC (RW, casting_time);/* time left before spell goes off */
193
190 uint16 ACC (RW, start_holding); 194 uint16 ACC (RW, start_holding);
191 uint8 ACC (RW, duration_modifier); /* how level modifies duration */ 195 uint8 ACC (RW, duration_modifier); /* how level modifies duration */
192 uint8 ACC (RW, dam_modifier); /* How going up in level effects damage */ 196 uint8 ACC (RW, dam_modifier); /* How going up in level effects damage */
197
193 sint8 ACC (RW, range); /* Range of the spell */ 198 sint8 ACC (RW, range); /* Range of the spell */
194 uint8 ACC (RW, range_modifier); /* How going up in level effects range */ 199 uint8 ACC (RW, range_modifier); /* How going up in level effects range */
195
196 MoveType ACC (RW, move_type); /* Type of movement this object uses */ 200 MoveType ACC (RW, move_type); /* Type of movement this object uses */
197 MoveType ACC (RW, move_block);/* What movement types this blocks */ 201 MoveType ACC (RW, move_block);/* What movement types this blocks */
202
198 MoveType ACC (RW, move_allow);/* What movement types explicitly allowd */ 203 MoveType ACC (RW, move_allow);/* What movement types explicitly allowd */
199 MoveType ACC (RW, move_on); /* Move types affected moving on to this space */ 204 MoveType ACC (RW, move_on); /* Move types affected moving on to this space */
200 MoveType ACC (RW, move_off); /* Move types affected moving off this space */ 205 MoveType ACC (RW, move_off); /* Move types affected moving off this space */
201 MoveType ACC (RW, move_slow); /* Movement types this slows down */ 206 MoveType ACC (RW, move_slow); /* Movement types this slows down */
207
202 float ACC (RW, move_slow_penalty); /* How much this slows down the object */ 208 float ACC (RW, move_slow_penalty); /* How much this slows down the object */
203 209
204 char *ACC (RW, spellarg); 210 char *ACC (RW, spellarg);
205 211
206 /* Following are values used by any object */ 212 /* Following are values used by any object */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines