29 #ifndef TOON_CHARACTER_H 30 #define TOON_CHARACTER_H 32 #include "common/array.h" 33 #include "common/rect.h" 35 #include "toon/toon.h" 63 virtual int32 getId();
64 virtual void setId(int32
id);
65 virtual void setFacing(int32 facing);
66 virtual void forceFacing(int32 facing);
67 virtual int32 getFacing();
68 virtual void setAnimScript(int32 animScriptId);
69 virtual void setSceneAnimationId(int32 sceneAnimationId);
70 virtual void setDefaultSpecialAnimationId(int32 defaultAnimationId);
71 virtual int32 getAnimScript();
72 virtual int32 getSceneAnimationId();
73 virtual void setFlag(
int flag);
74 virtual int32 getFlag();
75 virtual int32 getAnimFlag();
76 virtual void setAnimFlag(int32 flag);
77 virtual void setPosition(int16 x, int16 y);
78 virtual void forcePosition(int16 x, int16 y);
81 virtual int16 getFinalX();
82 virtual int16 getFinalY();
83 virtual bool walkTo(int16 newPosX, int16 newPosY);
84 virtual bool getVisible();
85 virtual void setVisible(
bool visible);
90 virtual bool setupPalette();
91 virtual void playStandingAnim();
92 virtual void playWalkAnim(int32 start, int32 end);
93 virtual void playTalkAnim();
94 virtual void playAnim(int32 animId, int32 unused, int32 flags);
95 virtual void update(int32 timeIncrement);
96 virtual int32 getScale();
101 virtual void stopWalk();
102 virtual void stopSpecialAnim();
103 virtual void updateIdle();
104 virtual int32 getRandomIdleAnim() {
return 0; }
105 virtual void updateTimers(int32 relativeAdd);
106 virtual void setTalking(
bool talking) { _isTalking = talking; }
107 virtual bool isTalking() {
return _isTalking; }
108 virtual void resetScale() {}
111 int32 getFacingFromDirection(int16 dx, int16 dy);
119 int32 _animSpecialId;
120 int32 _animSpecialDefaultId;
121 int32 _sceneAnimationId;
138 int32 _numPixelToWalk;
150 uint32 _currentPathNode;
151 int32 _currentWalkStamp;
152 int32 _currentFacingStamp;
Definition: character.h:41
Definition: character.h:58