#include <Sprite.hpp>
Public Member Functions | |
SpritePtr | ptr () throw () |
TSprite () throw () | |
TSprite (SpritePtr inSprite) throw () | |
TSprite (const TSprite &inSprite) throw () | |
~TSprite () throw () | |
void | create (short maxFrames) throw (std::runtime_error) |
void | createFromFile (const char *file, short maxFrames) throw (std::runtime_error) |
void | dispose () throw () |
void | lock () throw () |
void | unlock () throw () |
TSprite | clone () const throw (std::runtime_error) |
void | add (TFrame &newFrameP) throw () |
void | insert (TFrame &newFrameP, short index) throw () |
void | remove (TFrame &oldFrameP) throw () |
void | current (TFrame &curFrameP) throw () |
void | frameAdvance (short inFrameAdvance) throw () |
void | frameAdvanceMode (AdvanceType inFrameAdvanceMode) throw () |
void | frameCurrent (short inFrameIndex) throw () |
void | frameRange (short inFirstFrameIndex, short inLastFrameIndex) throw () |
void | frameTime (long inFrameTimeInterval) throw () |
void | move (SWMovementType inHorizLoc, SWMovementType inVertLoc) throw () |
void | offset (SWMovementType inHorizOffset, SWMovementType inVertOffset) throw () |
void | location (SWMovementType inHorizLoc, SWMovementType inVertLoc) throw () |
void | moveBounds (const SWRect &inMoveBoundsRect) throw () |
void | moveDelta (SWMovementType inHorizDelta, SWMovementType inVertDelta) throw () |
void | moveTime (long inTimeInterval) throw () |
void | bounce () throw () |
void | wrap () throw () |
bool | radiusCollision (TSprite &inDstSprite) throw () |
bool | pixelCollision (TSprite &inDstSprite) throw () |
void | visible (bool inIsVisible) throw () |
bool | within (const SWRect &inTestRect) throw () |
bool | fullyWithin (const SWRect &inTestRect) throw () |
bool | contain (const SWPoint &inTestPoint) throw () |
void | drawProc (DrawProcPtr inDrawProc) throw () |
void | moveProc (MoveProcPtr inMoveProc) throw () |
const SWMovementType | horizMoveDelta () const throw () |
const SWMovementType | vertMoveDelta () const throw () |
Protected Attributes | |
SpritePtr | mSprite |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|