… | |
… | |
216 | { |
216 | { |
217 | // These variables are not changed by ->copy_to |
217 | // These variables are not changed by ->copy_to |
218 | maptile_ptr ACC (RW, map); /* Pointer to the map in which this object is present */ |
218 | maptile_ptr ACC (RW, map); /* Pointer to the map in which this object is present */ |
219 | |
219 | |
220 | UUID ACC (RW, uuid); // Unique Identifier, survives saves etc. |
220 | UUID ACC (RW, uuid); // Unique Identifier, survives saves etc. |
221 | int ACC (RO, count); // index into objects |
221 | int ACC (RO, count); |
|
|
222 | int ACC (RO, index); // index into objects |
222 | int ACC (RO, active); // index into actives |
223 | int ACC (RO, active); // index into actives |
223 | |
224 | |
224 | player_ptr ACC (RW, contr); /* Pointer to the player which control this object */ |
225 | player_ptr ACC (RW, contr); /* Pointer to the player which control this object */ |
225 | |
226 | |
226 | object *ACC (RW, below); /* Pointer to the object stacked below this one */ |
227 | object *ACC (RW, below); /* Pointer to the object stacked below this one */ |
… | |
… | |
396 | |
397 | |
397 | object (); |
398 | object (); |
398 | ~object (); |
399 | ~object (); |
399 | }; |
400 | }; |
400 | |
401 | |
401 | typedef object_vector<object, &object::count > objectvec; |
402 | typedef object_vector<object, &object::index > objectvec; |
402 | typedef object_vector<object, &object::active> activevec; |
403 | typedef object_vector<object, &object::active> activevec; |
403 | |
404 | |
404 | extern objectvec objects; |
405 | extern objectvec objects; |
405 | extern activevec actives; |
406 | extern activevec actives; |
406 | |
407 | |