22 #ifndef GRIM_COMPONENT_H 23 #define GRIM_COMPONENT_H 25 #include "math/matrix4.h" 27 #include "engines/grim/object.h" 28 #include "engines/grim/animation.h" 43 virtual void setColormap(
CMap *c);
45 Component *getParent() {
return _parent; }
46 virtual void setMatrix(
const Math::Matrix4 &) { };
47 virtual void init() { }
48 virtual void setKey(
int) { }
49 virtual void setMapName(
char *) { }
50 virtual int update(uint time) {
return 0; }
51 virtual void animate() { }
52 virtual void draw() { }
53 virtual void reset() { }
54 virtual void fade(Animation::FadeMode,
int) { }
55 virtual void advance(uint msecs) { }
56 virtual void setPaused(
bool paused) { }
57 virtual void resetColormap() { }
58 virtual void saveState(
SaveGame *) { }
59 virtual void restoreState(
SaveGame *) { }
62 bool isComponentType(
char a0,
char a1,
char a2,
char a3) {
return _tag ==
MKTAG(a0, a1, a2, a3); }
73 void setCostume(
Costume *cost) { _cost = cost; }
Definition: savegame.h:33
Definition: colormap.h:35
Definition: costumeemi.h:40
Definition: component.h:38
#define MKTAG(a0, a1, a2, a3)
Definition: endian.h:188