28#ifndef GOB_ANIOBJECT_H
29#define GOB_ANIOBJECT_H
31#include "common/system.h"
33#include "gob/backbuffer.h"
81 void getFrameSize(int16 &width, int16 &height, uint16 n = 0)
const;
84 bool isIn(int16 x, int16 y)
const;
106 virtual bool draw(
Surface &dest, int16 &left, int16 &top, int16 &right, int16 &bottom);
108 virtual bool clear(
Surface &dest, int16 &left, int16 &top, int16 &right, int16 &bottom);
129 bool drawCMP(
Surface &dest, int16 &left, int16 &top, int16 &right, int16 &bottom);
130 bool drawANI(
Surface &dest, int16 &left, int16 &top, int16 &right, int16 &bottom);
Definition: aniobject.h:42
virtual bool draw(Surface &dest, int16 &left, int16 &top, int16 &right, int16 &bottom)
void setAnimation(uint16 animation)
void getFrameSize(int16 &width, int16 &height, uint16 n=0) const
bool isIn(int16 x, int16 y) const
void setPause(bool pause)
void setVisible(bool visible)
ANIObject(const CMPFile &cmp)
void setFrame(uint16 frame)
virtual void setPosition(int16 x, int16 y)
bool isIn(const ANIObject &obj) const
void getFramePosition(int16 &x, int16 &y, uint16 n=0) const
void getPosition(int16 &x, int16 &y) const
virtual bool clear(Surface &dest, int16 &left, int16 &top, int16 &right, int16 &bottom)
Mode
Definition: aniobject.h:44
@ kModeOnce
Play the animation only once.
Definition: aniobject.h:46
@ kModeContinuous
Play the animation continuously.
Definition: aniobject.h:45
virtual void setPosition()
uint16 getAnimation() const
ANIObject(const ANIFile &ani)
Definition: backbuffer.h:37
Definition: surface.h:106