… | |
… | |
97 | |
97 | |
98 | typedef uint16 animidx; |
98 | typedef uint16 animidx; |
99 | |
99 | |
100 | struct animation |
100 | struct animation |
101 | { |
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; |
102 | shstr name; /* Name of the animation sequence */ |
106 | shstr name; /* Name of the animation sequence */ |
103 | animidx number; |
|
|
104 | uint8 num_animations; /* How many different faces to animate */ |
|
|
105 | uint8 facings; /* How many facings (1,2,4,8) */ |
|
|
106 | faceidx *faces; /* The different animations */ |
|
|
107 | |
107 | |
108 | static animation &create (const char *name, uint8 frames, uint8 facings = 1); |
108 | static animation &create (const char *name, uint8 frames, uint8 facings = 1); |
109 | static animation &find (const char *name); |
109 | static animation &find (const char *name); |
110 | |
110 | |
111 | void resize (int new_size); |
111 | void resize (int new_size); |