23 #ifndef BAGEL_BAGLIB_BAG_CHARACTER_OBJECT_H 24 #define BAGEL_BAGLIB_BAG_CHARACTER_OBJECT_H 26 #include "video/smk_decoder.h" 27 #include "bagel/baglib/object.h" 35 int _charTransColor = 0;
37 char *_binBuf =
nullptr;
40 int _playbackSpeed = 0;
57 static bool _pdaAnimating;
62 static void initialize();
65 ErrorCode attach()
override;
66 ErrorCode detach()
override;
73 void updatePosition();
74 bool refreshCurrentFrame();
76 bool runObject()
override;
77 bool isInside(
const CBofPoint &point)
override;
81 int getNumberOfLoops()
const {
84 int getPlaybackSpeed()
const {
85 return _playbackSpeed;
87 int getStartFrame()
const {
90 int getEndFrame()
const {
93 int getCurrentFrame()
const {
94 return (_smacker !=
nullptr) ? _smacker->
getCurFrame() : -1;
97 bool isModalDone()
override {
101 bool isPanim()
const {
105 void setNumOfLoops(
int n);
106 void setPlaybackSpeed(
int n);
107 void setStartFrame(
int n);
108 void setEndFrame(
int n);
109 void setCurrentFrame(
int n);
113 void setProperty(
const CBofString &prop,
int val)
override;
114 int getProperty(
const CBofString &prop)
override;
119 static bool pdaWandAnimating();
121 bool isStationary()
const {
122 return _binBuf !=
nullptr;
Definition: smk_decoder.h:76
Definition: ifstream.h:31
Definition: character_object.h:31