ScummVM API documentation
Gob::ANIFile Class Reference

#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 AnimationgetAnimationInfo (uint16 animation) const
 
void draw (Surface &dest, uint16 animation, uint16 frame, int16 x, int16 y) const
 
void recolor (uint8 from, uint8 to)
 

Detailed Description

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.

Member Function Documentation

◆ getAnimationCount()

uint16 Gob::ANIFile::getAnimationCount ( ) const

Return the number of animations in this ANI file.

◆ getMaxSize()

void Gob::ANIFile::getMaxSize ( uint16 &  width,
uint16 &  height 
) const

Return the maximum size of all animation frames.

◆ getAnimationInfo()

const Animation& Gob::ANIFile::getAnimationInfo ( uint16  animation) const

Get this animation's properties.

◆ draw()

void Gob::ANIFile::draw ( Surface dest,
uint16  animation,
uint16  frame,
int16  x,
int16  y 
) const

Draw an animation frame.

◆ recolor()

void Gob::ANIFile::recolor ( uint8  from,
uint8  to 
)

Recolor the animation sprites.


The documentation for this class was generated from the following file: