#include <anifile.h>
Classes | |
struct | Animation |
struct | FrameArea |
Public Member Functions | |
ANIFile (GobEngine *vm, const Common::String &fileName, uint16 width=320, uint8 bpp=1) | |
uint16 | getAnimationCount () const |
void | getMaxSize (uint16 &width, uint16 &height) const |
const Animation & | getAnimationInfo (uint16 animation) const |
void | draw (Surface &dest, uint16 animation, uint16 frame, int16 x, int16 y) const |
void | recolor (uint8 from, uint8 to) |
An ANI file, describing an animation.
Used in hardcoded "actiony" parts of gob games. The principle is similar to an Anim in Scenery (see scenery.cpp), but instead of referencing indices in the sprites array, ANIs reference sprites directly by filename.
uint16 Gob::ANIFile::getAnimationCount | ( | ) | const |
Return the number of animations in this ANI file.
void Gob::ANIFile::getMaxSize | ( | uint16 & | width, |
uint16 & | height | ||
) | const |
Return the maximum size of all animation frames.
const Animation& Gob::ANIFile::getAnimationInfo | ( | uint16 | animation | ) | const |
Get this animation's properties.
void Gob::ANIFile::draw | ( | Surface & | dest, |
uint16 | animation, | ||
uint16 | frame, | ||
int16 | x, | ||
int16 | y | ||
) | const |
Draw an animation frame.
void Gob::ANIFile::recolor | ( | uint8 | from, |
uint8 | to | ||
) |
Recolor the animation sprites.