ScummVM API documentation
Wintermute::BaseSprite Class Reference
Inheritance diagram for Wintermute::BaseSprite:
Wintermute::BaseScriptHolder Wintermute::BaseScriptable Wintermute::BaseNamedObject Wintermute::BaseClass

Public Member Functions

BaseSurfacegetSurface ()
 
void cleanup ()
 
void setDefaults ()
 
bool getBoundingRect (Rect32 *rect, int x, int y, float scaleX=Graphics::kDefaultZoomX, float scaleY=Graphics::kDefaultZoomY)
 
bool display (int x, int y, BaseObject *registerOwner=nullptr, float zoomX=Graphics::kDefaultZoomX, float zoomY=Graphics::kDefaultZoomY, uint32 alpha=Graphics::kDefaultRgbaMod, float rotate=Graphics::kDefaultAngle, Graphics::TSpriteBlendMode blendMode=Graphics::BLEND_NORMAL)
 
bool getCurrentFrame (float zoomX=Graphics::kDefaultZoomX, float zoomY=Graphics::kDefaultZoomY)
 
void reset ()
 
bool isChanged ()
 
bool isFinished ()
 
bool loadBuffer (char *buffer, bool compete=true, int lifeTime=-1, TSpriteCacheType cacheType=CACHE_ALL)
 
bool loadFile (const Common::String &filename, int lifeTime=-1, TSpriteCacheType cacheType=CACHE_ALL)
 
bool draw (int x, int y, BaseObject *Register=nullptr, float zoomX=Graphics::kDefaultZoomX, float zoomY=Graphics::kDefaultZoomY, uint32 alpha=Graphics::kDefaultRgbaMod)
 
bool addFrame (const char *filename, uint32 delay=0, int hotspotX=0, int hotspotY=0, Rect32 *rect=nullptr)
 
 BaseSprite (BaseGame *inGame, BaseObject *owner=nullptr)
 
bool saveAsText (BaseDynamicBuffer *buffer, int indent) override
 
ScValuescGetProperty (const Common::String &name) override
 
bool scSetProperty (const char *name, ScValue *value) override
 
bool scCallMethod (ScScript *script, ScStack *stack, ScStack *thisStack, const char *name) override
 
const char * scToString () override
 
Common::String debuggerToString () const override
 
- Public Member Functions inherited from Wintermute::BaseScriptHolder
 BaseScriptHolder (BaseGame *inGame)
 
ScScriptinvokeMethodThread (const char *methodName) override
 
virtual void makeFreezable (bool freezable)
 
bool canHandleEvent (const char *eventName) const
 
bool canHandleMethod (const char *eventMethod) const override
 
bool cleanup ()
 
bool removeScript (ScScript *script)
 
bool addScript (const char *filename)
 
virtual bool listen (BaseScriptHolder *param1, uint32 param2)
 
bool applyEvent (const char *eventName, bool unbreakable=false)
 
void setFilename (const char *filename)
 
const char * getFilename ()
 
bool parseProperty (char *buffer, bool complete=true)
 
void scDebuggerDesc (char *buf, int bufSize) override
 
virtual bool sendEvent (const char *eventName)
 
- Public Member Functions inherited from Wintermute::BaseScriptable
 BaseScriptable (BaseGame *inGame, bool noValue=false, bool persistable=true)
 
virtual void * scToMemBuffer ()
 
virtual int scToInt ()
 
virtual double scToFloat ()
 
virtual bool scToBool ()
 
virtual void scSetString (const char *val)
 
virtual void scSetInt (int val)
 
virtual void scSetFloat (double val)
 
virtual void scSetBool (bool val)
 
virtual int scCompare (BaseScriptable *val)
 
- Public Member Functions inherited from Wintermute::BaseNamedObject
 BaseNamedObject (BaseGame *inGame)
 
 BaseNamedObject (TDynamicConstructor, TDynamicConstructor)
 
const char * getName () const
 
void setName (const char *name)
 
- Public Member Functions inherited from Wintermute::BaseClass
bool setEditorProp (const Common::String &propName, const Common::String &propValue)
 
Common::String getEditorProp (const Common::String &propName, const Common::String &initVal=Common::String())
 
 BaseClass (TDynamicConstructor, TDynamicConstructor)
 
bool parseEditorProperty (char *buffer, bool complete=true)
 
 BaseClass (BaseGame *GameOwner)
 
virtual const char * getClassName ()
 
virtual bool persist (BasePersistenceManager *persistMgr)
 

Public Attributes

int32 _moveY
 
int32 _moveX
 
bool _looping
 
int32 _currentFrame
 
BaseArray< BaseFrame * > _frames
 
- Public Attributes inherited from Wintermute::BaseScriptHolder
bool _freezable
 
bool _ready
 
BaseArray< ScScript * > _scripts
 
- Public Attributes inherited from Wintermute::BaseScriptable
int32 _refCount
 
ScValue_scValue
 
ScValue_scProp
 
- Public Attributes inherited from Wintermute::BaseNamedObject
char * _name
 
- Public Attributes inherited from Wintermute::BaseClass
bool _persistable
 
BaseGame_gameRef
 

Additional Inherited Members

- Protected Attributes inherited from Wintermute::BaseClass
Common::HashMap< Common::String, Common::String_editorProps
 
Common::HashMap< Common::String, Common::String >::iterator _editorPropsIter
 

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