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/spacebar/baglib/object.h" 36 int _charTransColor = 0;
38 char *_binBuf =
nullptr;
41 int _playbackSpeed = 0;
58 static bool _pdaAnimating;
63 static void initialize();
66 ErrorCode attach()
override;
67 ErrorCode detach()
override;
74 void updatePosition();
75 bool refreshCurrentFrame();
77 bool runObject()
override;
78 bool isInside(
const CBofPoint &point)
override;
82 int getNumberOfLoops()
const {
85 int getPlaybackSpeed()
const {
86 return _playbackSpeed;
88 int getStartFrame()
const {
91 int getEndFrame()
const {
94 int getCurrentFrame()
const {
95 return (_smacker !=
nullptr) ? _smacker->
getCurFrame() : -1;
98 bool isModalDone()
override {
102 bool isPanim()
const {
106 void setNumOfLoops(
int n);
107 void setPlaybackSpeed(
int n);
108 void setStartFrame(
int n);
109 void setEndFrame(
int n);
110 void setCurrentFrame(
int n);
114 void setProperty(
const CBofString &prop,
int val)
override;
115 int getProperty(
const CBofString &prop)
override;
120 static bool pdaWandAnimating();
122 bool isStationary()
const {
123 return _binBuf !=
nullptr;
Definition: ifstream.h:32
Definition: character_object.h:32
Definition: smk_decoder.h:77