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.74 by elmex, Sat Dec 30 21:07:46 2006 UTC vs.
Revision 1.76 by root, Sat Dec 30 21:18:29 2006 UTC

290 MTH void change_luck (int value); 290 MTH void change_luck (int value);
291 291
292 // info must hold 256 * 3 bytes currently 292 // info must hold 256 * 3 bytes currently
293 const char *debug_desc (char *info) const; 293 const char *debug_desc (char *info) const;
294 MTH const char *debug_desc () const; 294 MTH const char *debug_desc () const;
295 const char *object::flag_desc (char *desc, int len) const; 295 const char *flag_desc (char *desc, int len) const;
296 296
297 MTH bool is_weapon () const { return type == ARROW || type == BOW || type == WEAPON; } 297 MTH bool is_weapon () const { return type == ARROW || type == BOW || type == WEAPON; }
298 MTH bool is_armor () const { return type == ARMOUR || type == SHIELD || type == HELMET 298 MTH bool is_armor () const { return type == ARMOUR || type == SHIELD || type == HELMET
299 || type == CLOAK || type == BOOTS || type == GLOVES 299 || type == CLOAK || type == BOOTS || type == GLOVES
300 || type == BRACERS || type == GIRDLE; } 300 || type == BRACERS || type == GIRDLE; }
306 || (type == SPELL_EFFECT 306 || (type == SPELL_EFFECT
307 && (subtype == SP_BULLET || subtype == SP_MAGIC_MISSILE)); } 307 && (subtype == SP_BULLET || subtype == SP_MAGIC_MISSILE)); }
308 308
309 MTH bool has_active_speed () const { return FABS(speed) >= MIN_ACTIVE_SPEED; } 309 MTH bool has_active_speed () const { return FABS(speed) >= MIN_ACTIVE_SPEED; }
310 310
311 // temporary: wether the objetc can be saved in a map file 311 // temporary: wether the object can be saved in a map file
312 // contr => is a player 312 // contr => is a player
313 // head => only save head of a multitile object 313 // head => only save head of a multitile object
314 // owner => can not reference owner yet 314 // owner => can not reference owner yet
315 MTH bool can_map_save () const { return !contr && !head && !owner; } 315 MTH bool can_map_save () const { return !contr && !head && !owner; }
316 316

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines