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);
98 void draw(
Surface &dest, uint16 animation, uint16 frame, int16 x, int16 y)
const;
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;
uint16 getAnimationCount() const
void getMaxSize(uint16 &width, uint16 &height) const
void draw(Surface &dest, uint16 animation, uint16 frame, int16 x, int16 y) const
const Animation & getAnimationInfo(uint16 animation) const
void recolor(uint8 from, uint8 to)
Definition: surface.h:106
Definition: algorithm.h:29
Common::String name
The name of the animation.
Definition: anifile.h:65
int16 deltaY
Definition: anifile.h:74
int16 deltaX
Definition: anifile.h:73
uint16 width
The maximum width of this animation's frames.
Definition: anifile.h:79
uint16 height
The maximum height of this animation's frames.
Definition: anifile.h:80
int16 y
The default y position for this animation.
Definition: anifile.h:70
Common::Array< FrameArea > frameAreas
Definition: anifile.h:77
uint16 frameCount
The number of frames in this animation.
Definition: anifile.h:67
int16 x
The default x position for this animation.
Definition: anifile.h:69
bool transp
Should the animation frames be drawn with transparency?
Definition: anifile.h:71