ScummVM API documentation
Bagel::CBofSprite Class Reference
Inheritance diagram for Bagel::CBofSprite:
Bagel::CBofError Bagel::CBofObject Bagel::CLList

Public Member Functions

CBofSpriteduplicateSprite ()
 
void duplicateSprite (CBofSprite *pSprite)
 
bool loadSprite (const char *pszPathName, int nCels=1)
 
bool loadSprite (CBofBitmap *pBitmap, int nCels=1)
 
bool paintSprite (CBofBitmap *pBmp, int x, int y)
 
bool paintSprite (CBofBitmap *pBmp, CBofPoint point)
 
bool paintSprite (CBofWindow *pWnd, int x, int y)
 
bool paintSprite (CBofWindow *pWnd, CBofPoint point)
 
bool paintCel (CBofWindow *pWnd, int nCelId, int x, int y)
 
bool paintCel (CBofBitmap *pBmp, int nCelId, int x, int y)
 
void batchPaint (int, int y)
 
void batchErase ()
 
bool setupCels (int nCels)
 
void setCel (int nCelID)
 
void nextCel ()
 
void prevCel ()
 
bool refreshSprite (CBofBitmap *pBmp)
 
bool refreshSprite (CBofWindow *pWnd)
 
bool eraseSprite (CBofWindow *pWnd)
 
CBofSpriteinterception (CBofRect *newRect, CBofSprite *pTestSprite)
 
CBofSpriteinterception (CBofSprite *pTestSprite)
 
CBofSpriteinterception ()
 
CBofSpriteinterception (CBofRect *newRect)
 
bool testInterception (CBofSprite *pTestSprite, CBofPoint *pPoint=nullptr)
 
void setPosition (int x, int y)
 
CBofPoint getPosition () const
 
CBofSize getSize () const
 
CBofRect getRect () const
 
int height () const
 
int width () const
 
void setMaskColor (int nColor)
 
int getMaskColor () const
 
byte readPixel (int x, int y) const
 
void setZOrder (int nValue)
 
int getCelCount () const
 
int getCelIndex () const
 
void setAnimated (bool bAnimated)
 
bool getAnimated () const
 
void linkSprite ()
 
void unlinkSprite ()
 
const char * getFileName () const
 
void setBlockAdvance (bool b=true)
 
bool getBlockAdvance () const
 
- Public Member Functions inherited from Bagel::CBofError
void reportError (ErrorCode errCode, const char *format,...)
 
bool errorOccurred () const
 
ErrorCode getErrorCode () const
 
void clearError ()
 
- Public Member Functions inherited from Bagel::CLList
 CLList ()
 
 CLList (void *pObj)
 
virtual ~CLList ()
 
void Insert (CLList *pNewList)
 
void Delete ()
 
void addToHead (CLList *pNewList)
 
void addToTail (CLList *pNewList)
 
void MoveToHead ()
 
void MoveToTail ()
 
void MoveLeft ()
 
void MoveRight ()
 
CLListgetHead ()
 
CLListgetTail ()
 
CLListgetPrev () const
 
CLListgetNext () const
 
void * getData () const
 
void PutData (void *pObj)
 
void FlushList ()
 

Static Public Member Functions

static void initialize ()
 
static void shutdown ()
 
static void openLibrary (CBofPalette *pPal)
 
static void closeLibrary ()
 
static void setSharedPalette (CBofPalette *pPalette)
 
static CBofSpritegetSpriteChain ()
 
static bool updateDirtyRect (CBofWindow *pWnd, CBofSprite *pPrimarySprite=nullptr)
 
static bool updateDirtyRect (CBofBitmap *pBmp, CBofSprite *pPrimarySprite=nullptr)
 
static void addToDirtyRect (CBofRect *pRect)
 
static void clearDirtyRect ()
 
static CBofRectgetDirtyRect ()
 
static void flushSpriteChain ()
 
static void setupWorkArea (int dx, int dy)
 
static void tearDownWorkArea ()
 
- Static Public Member Functions inherited from Bagel::CBofError
static void fatalError (ErrorCode errCode, const char *format,...)
 
static void initialize ()
 
static int getErrorCount ()
 
- Static Public Member Functions inherited from Bagel::CBofObject
static bool isValidObject (const CBofObject *pObject)
 

Public Attributes

CBofBitmap_pImage
 

Protected Attributes

CBofPoint _cPosition
 
CBofSize _cSize
 
CBofRect _cRect
 
CBofRect _cImageRect
 
int _nMaskColor
 
int _nZOrder
 
int _nCelID
 
int _nCelCount
 
bool _bDuplicated: 1
 
bool _bPositioned: 1
 
bool _bAnimated: 1
 
bool _bLinked: 1
 
bool _bReadOnly: 1
 
- Protected Attributes inherited from Bagel::CBofError
ErrorCode _errCode
 
- Protected Attributes inherited from Bagel::CLList
CLList_pPrev
 
CLList_pNext
 
void * _pData
 

Static Protected Attributes

static CBofRect_cDirtyRect
 
static CBofSprite_pSpriteChain
 
static CBofSprite_pTouchedSprite
 
static CBofBitmap_pWorkBmp
 
static CBofPalette_pSharedPalette
 
static int _nWorkDX
 
static int _nWorkDY
 
- Static Protected Attributes inherited from Bagel::CBofError
static int _count
 

Additional Inherited Members

- Protected Member Functions inherited from Bagel::CBofError
virtual void bofMessageBox (const Common::String &content, const Common::String &title)
 

The documentation for this class was generated from the following file: