23#ifndef BAGEL_BAGLIB_SPRITE_OBJECT_H
24#define BAGEL_BAGLIB_SPRITE_OBJECT_H
26#include "bagel/spacebar/baglib/object.h"
27#include "bagel/spacebar/boflib/gfx/sprite.h"
47 ErrorCode attach()
override;
48 ErrorCode detach()
override;
49 bool isAttached()
override {
50 return _xSprite !=
nullptr;
54 bool isInside(
const CBofPoint &xPoint)
override;
56 int getWieldCursor()
const {
59 void setWieldCursor(
int n) {
63 CBofSprite *getSprite()
const {
66 CBofRect getRect()
override;
71 bool isAnimated()
const {
75 void setAnimated(
bool b =
true);
76 void setCels(
int nCels);
77 void setPosition(
const CBofPoint &pos)
override;
79 ErrorCode update(CBofBitmap *pBmp, CBofPoint pt, CBofRect *pSrcRect =
nullptr,
int = -1)
override;
81 void setProperty(
const CBofString &sProp,
int nVal)
override;
82 int getProperty(
const CBofString &sProp)
override;
84 int getFrameRate()
const {
85 return _nMaxFrameRate;
87 void setFrameRate(
int nFR) {
Definition: ifstream.h:32
Definition: sprite_object.h:35
ParseCodes setInfo(CBagIfstream &istr) override
ErrorCode
Definition: error.h:47