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.209 by sf-marcmagus, Sun Oct 11 01:35:52 2009 UTC vs.
Revision 1.210 by root, Sun Oct 11 05:31:54 2009 UTC

709 // currently only used for players to make them temporarily visible 709 // currently only used for players to make them temporarily visible
710 // when they are invisible. 710 // when they are invisible.
711 MTH void make_noise (); 711 MTH void make_noise ();
712 712
713 /* animation */ 713 /* animation */
714 bool has_anim () { return animation_id; } 714 MTH bool has_anim () const { return animation_id; }
715 const animation &anim () const { return animations [animation_id]; } 715 const animation &anim () const { return animations [animation_id]; }
716 faceidx get_anim_frame (int frame) const { return anim ().faces [frame]; } 716 MTH faceidx get_anim_frame (int frame) const { return anim ().faces [frame]; }
717 void set_anim_frame (int frame) { face = get_anim_frame (frame); } 717 MTH void set_anim_frame (int frame) { face = get_anim_frame (frame); }
718 /* anim_frames () returns the number of animations allocated. The last 718 /* anim_frames () returns the number of animations allocated. The last
719 * usuable animation will be anim_frames () - 1 (for example, if an object 719 * usuable animation will be anim_frames () - 1 (for example, if an object
720 * has 8 animations, anim_frames () will return 8, but the values will 720 * has 8 animations, anim_frames () will return 8, but the values will
721 * range from 0 through 7. 721 * range from 0 through 7.
722 */ 722 */
723 int anim_frames () const { return anim ().num_animations; } 723 MTH int anim_frames () const { return anim ().num_animations; }
724 int anim_facings () const { return anim ().facings; } 724 MTH int anim_facings () const { return anim ().facings; }
725
726 MTH char *as_string ();
725 727
726protected: 728protected:
727 void link (); 729 void link ();
728 void unlink (); 730 void unlink ();
729 731

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines