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.199 by elmex, Mon Jan 12 00:17:23 2009 UTC vs.
Revision 1.201 by root, Sat Jun 27 03:51:05 2009 UTC

266 266
267 sint8 ACC (RW, item_power); /* power rating of the object */ 267 sint8 ACC (RW, item_power); /* power rating of the object */
268 // 8 free bits 268 // 8 free bits
269 269
270 float ACC (RW, move_slow_penalty); /* How much this slows down the object */ 270 float ACC (RW, move_slow_penalty); /* How much this slows down the object */
271 char *ACC (RW, spellarg); 271 shstr ACC (RW, spellarg); /* only used in arrows - get rid of it? */
272 272
273 /* Following are values used by any object */ 273 /* Following are values used by any object */
274 /* this objects turns into or what this object creates */ 274 /* this objects turns into or what this object creates */
275 treasurelist *ACC (RW, randomitems); /* Items to be generated */ 275 treasurelist *ACC (RW, randomitems); /* Items to be generated */
276 276
694 694
695 // make some noise with given item into direction dir, 695 // make some noise with given item into direction dir,
696 // currently only used for players to make them temporarily visible 696 // currently only used for players to make them temporarily visible
697 // when they are invisible. 697 // when they are invisible.
698 MTH void make_noise (); 698 MTH void make_noise ();
699
700 /* animation */
701 bool has_anim () { return animation_id; }
702 const animation &anim () const { return animations [animation_id]; }
703 faceidx get_anim_frame (int frame) const { return anim ().faces [frame]; }
704 void set_anim_frame (int frame) { face = get_anim_frame (frame); }
705 /* anim_frames () returns the number of animations allocated. The last
706 * usuable animation will be anim_frames () - 1 (for example, if an object
707 * has 8 animations, anim_frames () will return 8, but the values will
708 * range from 0 through 7.
709 */
710 int anim_frames () const { return anim ().num_animations; }
711 int anim_facings () const { return anim ().facings; }
699 712
700protected: 713protected:
701 void link (); 714 void link ();
702 void unlink (); 715 void unlink ();
703 716

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines