31 #include "common/system.h" 32 #include "common/str.h" 33 #include "common/array.h" 34 #include "common/list.h" 37 class SeekableReadStreamEndian;
85 uint16 width = 320, uint8 bpp = 1);
89 uint16 getAnimationCount()
const;
92 void getMaxSize(uint16 &width, uint16 &height)
const;
95 const Animation &getAnimationInfo(uint16 animation)
const;
98 void draw(
Surface &dest, uint16 animation, uint16 frame, int16 x, int16 y)
const;
101 void recolor(uint8 from, uint8 to);
108 struct AnimationChunk {
129 AnimationArray _animations;
130 AnimationFrameArray _frames;
142 void loadAnimation(
Animation &animation, FrameArray &frames,
148 bool getCoordinates(uint16 layer, uint16 part,
149 uint16 &left, uint16 &top, uint16 &right, uint16 &bottom)
const;
151 void drawLayer(
Surface &dest, uint16 layer, uint16 part,
152 int16 x, int16 y, int32 transp)
const;
157 #endif // GOB_ANIFILE_H Common::Array< FrameArea > frameAreas
Definition: anifile.h:77
uint16 height
The maximum height of this animation's frames.
Definition: anifile.h:80
uint16 frameCount
The number of frames in this animation.
Definition: anifile.h:67
Common::String name
The name of the animation.
Definition: anifile.h:65
Definition: algorithm.h:29
Definition: surface.h:100
bool transp
Should the animation frames be drawn with transparency?
Definition: anifile.h:71
int16 x
The default x position for this animation.
Definition: anifile.h:69
int16 deltaY
of pixels to advance in Y direction after each cycle.
Definition: anifile.h:74
int16 deltaX
of pixels to advance in X direction after each cycle.
Definition: anifile.h:73
int16 y
The default y position for this animation.
Definition: anifile.h:70
uint16 width
The maximum width of this animation's frames.
Definition: anifile.h:79