ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <base_sprite.h>

Inheritance diagram for Wintermute::BaseSprite:
Collaboration diagram for Wintermute::BaseSprite:

List of all members.

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)
 ~BaseSprite () override
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 Attributes

int32 _moveY
int32 _moveX
bool _looping
int32 _currentFrame
BaseArray< BaseFrame * > _frames

Private Member Functions

bool killAllSounds ()

Private Attributes

BaseObject_owner
bool _canBreak
bool _changed
bool _editorAllFrames
char * _editorBgFile
int32 _editorBgOffsetX
int32 _editorBgOffsetY
int32 _editorBgAlpha
bool _editorMuted
bool _finished
bool _continuous
uint32 _lastFrameTime
bool _precise
bool _paused
bool _streamed
bool _streamedKeepLoaded

Detailed Description

Definition at line 41 of file base_sprite.h.


Constructor & Destructor Documentation

Wintermute::BaseSprite::BaseSprite ( BaseGame inGame,
BaseObject owner = nullptr 
)

Definition at line 51 of file base_sprite.cpp.

Wintermute::BaseSprite::~BaseSprite (  )  [override]

Definition at line 59 of file base_sprite.cpp.


Member Function Documentation

bool Wintermute::BaseSprite::addFrame ( const char *  filename,
uint32  delay = 0,
int  hotspotX = 0,
int  hotspotY = 0,
Rect32 rect = nullptr 
)
void Wintermute::BaseSprite::cleanup (  ) 

Reimplemented from Wintermute::BaseScriptHolder.

Definition at line 90 of file base_sprite.cpp.

Common::String Wintermute::BaseSprite::debuggerToString (  )  const [override, virtual]

Reimplemented from Wintermute::BaseScriptable.

Definition at line 832 of file base_sprite.cpp.

bool Wintermute::BaseSprite::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 
)

Definition at line 433 of file base_sprite.cpp.

bool Wintermute::BaseSprite::draw ( int  x,
int  y,
BaseObject Register = nullptr,
float  zoomX = Graphics::kDefaultZoomX,
float  zoomY = Graphics::kDefaultZoomY,
uint32  alpha = Graphics::kDefaultRgbaMod 
)

Definition at line 106 of file base_sprite.cpp.

bool Wintermute::BaseSprite::getBoundingRect ( Rect32 rect,
int  x,
int  y,
float  scaleX = Graphics::kDefaultZoomX,
float  scaleY = Graphics::kDefaultZoomY 
)

Definition at line 472 of file base_sprite.cpp.

bool Wintermute::BaseSprite::getCurrentFrame ( float  zoomX = Graphics::kDefaultZoomX,
float  zoomY = Graphics::kDefaultZoomY 
)

Definition at line 372 of file base_sprite.cpp.

BaseSurface * Wintermute::BaseSprite::getSurface (  ) 

Definition at line 453 of file base_sprite.cpp.

bool Wintermute::BaseSprite::isChanged (  ) 

Definition at line 126 of file base_sprite.cpp.

bool Wintermute::BaseSprite::isFinished (  ) 

Definition at line 130 of file base_sprite.cpp.

bool Wintermute::BaseSprite::killAllSounds (  )  [private]

Definition at line 825 of file base_sprite.cpp.

TOKEN_DEF_START TOKEN_DEF_END bool Wintermute::BaseSprite::loadBuffer ( char *  buffer,
bool  compete = true,
int  lifeTime = -1,
TSpriteCacheType  cacheType = CACHE_ALL 
)

Definition at line 208 of file base_sprite.cpp.

bool Wintermute::BaseSprite::loadFile ( const Common::String filename,
int  lifeTime = -1,
TSpriteCacheType  cacheType = CACHE_ALL 
)

Definition at line 135 of file base_sprite.cpp.

void Wintermute::BaseSprite::reset (  ) 

Definition at line 348 of file base_sprite.cpp.

bool Wintermute::BaseSprite::saveAsText ( BaseDynamicBuffer buffer,
int  indent 
) [override, virtual]

Reimplemented from Wintermute::BaseScriptHolder.

Definition at line 489 of file base_sprite.cpp.

bool Wintermute::BaseSprite::scCallMethod ( ScScript script,
ScStack stack,
ScStack thisStack,
const char *  name 
) [override, virtual]

Reimplemented from Wintermute::BaseScriptHolder.

Definition at line 567 of file base_sprite.cpp.

ScValue * Wintermute::BaseSprite::scGetProperty ( const Common::String name  )  [override, virtual]

Reimplemented from Wintermute::BaseScriptHolder.

Definition at line 709 of file base_sprite.cpp.

bool Wintermute::BaseSprite::scSetProperty ( const char *  name,
ScValue value 
) [override, virtual]

Reimplemented from Wintermute::BaseScriptHolder.

Definition at line 785 of file base_sprite.cpp.

const char * Wintermute::BaseSprite::scToString (  )  [override, virtual]

Reimplemented from Wintermute::BaseScriptHolder.

Definition at line 819 of file base_sprite.cpp.

void Wintermute::BaseSprite::setDefaults (  ) 

Definition at line 65 of file base_sprite.cpp.


Member Data Documentation

Definition at line 75 of file base_sprite.h.

Definition at line 76 of file base_sprite.h.

Definition at line 84 of file base_sprite.h.

Definition at line 77 of file base_sprite.h.

Definition at line 81 of file base_sprite.h.

Definition at line 78 of file base_sprite.h.

Definition at line 79 of file base_sprite.h.

Definition at line 80 of file base_sprite.h.

Definition at line 82 of file base_sprite.h.

Definition at line 83 of file base_sprite.h.

Definition at line 85 of file base_sprite.h.

Definition at line 59 of file base_sprite.h.

Definition at line 74 of file base_sprite.h.

Definition at line 87 of file base_sprite.h.

Definition at line 86 of file base_sprite.h.

Definition at line 88 of file base_sprite.h.

Definition at line 89 of file base_sprite.h.


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


Generated on Sat Sep 26 2020 05:04:12 for ResidualVM by doxygen 1.7.1
curved edge   curved edge