ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/face.h
(Generate patch)

Comparing deliantra/server/include/face.h (file contents):
Revision 1.19 by root, Thu Jul 12 08:40:14 2007 UTC vs.
Revision 1.21 by root, Sat Sep 15 15:58:06 2007 UTC

58 uint8 magicmap; /* Color to show this in magic map */ 58 uint8 magicmap; /* Color to show this in magic map */
59 59
60 faceinfo () 60 faceinfo ()
61 : number (0), smooth (0), type (0), smoothlevel (0), visibility (0), magicmap (0) 61 : number (0), smooth (0), type (0), smoothlevel (0), visibility (0), magicmap (0)
62 { } 62 { }
63
64 facedata *data (int faceset) const;
63}; 65};
64 66
65inline void 67inline void
66object_freezer::put (keyword k, faceinfo *v) 68object_freezer::put (keyword k, faceinfo *v)
67{ 69{
95 97
96typedef uint16 animidx; 98typedef uint16 animidx;
97 99
98struct animation 100struct animation
99{ 101{
102 faceidx *faces; /* The different animations */
103 int num_animations; /* How many different faces to animate */
104 sint8 facings; /* How many facings (1,2,4,8) */
105 animidx number;
100 shstr name; /* Name of the animation sequence */ 106 shstr name; /* Name of the animation sequence */
101 animidx number;
102 uint8 num_animations; /* How many different faces to animate */
103 uint8 facings; /* How many facings (1,2,4,8) */
104 faceidx *faces; /* The different animations */
105 107
106 static animation &create (const char *name, uint8 frames, uint8 facings = 1); 108 static animation &create (const char *name, uint8 frames, uint8 facings = 1);
107 static animation &find (const char *name); 109 static animation &find (const char *name);
108 110
109 void resize (int new_size); 111 void resize (int new_size);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines