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.273 by root, Sat Nov 17 23:33:18 2018 UTC vs.
Revision 1.274 by root, Sun Nov 18 15:19:48 2018 UTC

830 * range from 0 through 7. 830 * range from 0 through 7.
831 */ 831 */
832 MTH int anim_frames () const { return anim ().num_animations; } 832 MTH int anim_frames () const { return anim ().num_animations; }
833 MTH int anim_facings () const { return anim ().facings; } 833 MTH int anim_facings () const { return anim ().facings; }
834 834
835 // sets a new animation frame, if the object has animation frames,
836 // and updates the face
837 MTH void update_anim_frame (int frame);
838
835 MTH utf8_string as_string (); 839 MTH utf8_string as_string ();
836 840
837 // low-level management, statistics, ... 841 // low-level management, statistics, ...
838 static uint32_t ACC (RW, object_count); 842 static uint32_t ACC (RW, object_count);
839 static uint32_t ACC (RW, free_count); 843 static uint32_t ACC (RW, free_count);
970//+GPL 974//+GPL
971 975
972/* Used by update_object to know if the object being passed is 976/* Used by update_object to know if the object being passed is
973 * being added or removed. 977 * being added or removed.
974 */ 978 */
975#define UP_OBJ_INSERT 1 979#define UP_OBJ_INSERT 1 // object was inserted
976#define UP_OBJ_REMOVE 2 980#define UP_OBJ_REMOVE 2 // object was removed
977#define UP_OBJ_CHANGE 3 981#define UP_OBJ_CHANGE 3 // object has changed in some unspecified way
978#define UP_OBJ_FACE 4 /* Only thing that changed was the face */ 982#define UP_OBJ_FACE 4 // only thing that changed was the face
979 983
980/* These are flags passed to insert_ob_in_map and 984/* These are flags passed to insert_ob_in_map and
981 * insert_ob_in_ob. Note that all flags may not be meaningful 985 * insert_ob_in_ob. Note that all flags may not be meaningful
982 * for both functions. 986 * for both functions.
983 * Most are fairly explanatory: 987 * Most are fairly explanatory:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines