ScummVM API documentation
Pegasus::Sprite Class Reference
Inheritance diagram for Pegasus::Sprite:
Pegasus::DisplayElement Pegasus::IDObject

Classes

struct  SpriteFrameRec
 

Public Member Functions

 Sprite (const DisplayElementID)
 
virtual void addPICTResourceFrame (const ResIDType, const bool, const CoordType, const CoordType)
 
virtual uint32 addFrame (SpriteFrame *, const CoordType, const CoordType)
 
virtual void removeFrame (const uint32)
 
virtual void discardFrames ()
 
virtual void setCurrentFrameIndex (const int32)
 
virtual uint32 getCurrentFrameIndex () const
 
virtual SpriteFramegetFrame (const int32)
 
void draw (const Common::Rect &) override
 
uint32 getNumFrames () const
 
- Public Member Functions inherited from Pegasus::DisplayElement
 DisplayElement (const DisplayElementID)
 
void setDisplayOrder (const DisplayOrder)
 
DisplayOrder getDisplayOrder () const
 
bool validToDraw (DisplayOrder, DisplayOrder)
 
bool isDisplaying ()
 
virtual void startDisplaying ()
 
virtual void stopDisplaying ()
 
virtual void show ()
 
virtual void hide ()
 
bool isVisible ()
 
void triggerRedraw ()
 
void setTriggeredElement (DisplayElement *)
 
virtual void setBounds (const CoordType, const CoordType, const CoordType, const CoordType)
 
virtual void setBounds (const Common::Rect &)
 
virtual void getBounds (Common::Rect &) const
 
virtual void sizeElement (const CoordType, const CoordType)
 
virtual void moveElementTo (const CoordType, const CoordType)
 
virtual void moveElement (const CoordType, const CoordType)
 
virtual void getLocation (CoordType &, CoordType &) const
 
virtual void getCenter (CoordType &, CoordType &) const
 
virtual void centerElementAt (const CoordType, const CoordType)
 
- Public Member Functions inherited from Pegasus::IDObject
 IDObject (const int32 id)
 
int32 getObjectID () const
 

Protected Attributes

uint32 _numFrames
 
uint32 _currentFrameNum
 
SpriteFrameRec_currentFrame
 
Common::Array< SpriteFrameRec_frameArray
 
- Protected Attributes inherited from Pegasus::DisplayElement
Common::Rect _bounds
 
bool _elementIsVisible
 
DisplayElement_triggeredElement
 
bool _elementIsDisplaying
 
DisplayOrder _elementOrder
 
DisplayElement_nextElement
 

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