TSprite Class Reference

CLASS TSprite, wrapping SpritePtr. More...

#include <Sprite.hpp>

List of all members.

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


Detailed Description

CLASS TSprite, wrapping SpritePtr.


Constructor & Destructor Documentation

TSprite::TSprite (   )  throw () [inline]
 

TSprite::TSprite (  SpritePtr  inSprite  )  throw () [inline]
 

TSprite::TSprite (  const TSprite &  inSprite  )  throw () [inline]
 

TSprite::~TSprite (   )  throw () [inline]
 


Member Function Documentation

void TSprite::add (  TFrame &  newFrameP  )  throw () [inline]
 

void TSprite::bounce (   )  throw () [inline]
 

TSprite TSprite::clone (   )  const throw (std::runtime_error) [inline]
 

bool TSprite::contain (  const SWPoint &  inTestPoint  )  throw () [inline]
 

void TSprite::create (  short  maxFrames  )  throw (std::runtime_error) [inline]
 

void TSprite::createFromFile (  const char *  file,
short  maxFrames
)  throw (std::runtime_error) [inline]
 

void TSprite::current (  TFrame &  curFrameP  )  throw () [inline]
 

void TSprite::dispose (   )  throw () [inline]
 

void TSprite::drawProc (  DrawProcPtr  inDrawProc  )  throw () [inline]
 

void TSprite::frameAdvance (  short  inFrameAdvance  )  throw () [inline]
 

void TSprite::frameAdvanceMode (  AdvanceType  inFrameAdvanceMode  )  throw () [inline]
 

void TSprite::frameCurrent (  short  inFrameIndex  )  throw () [inline]
 

void TSprite::frameRange (  short  inFirstFrameIndex,
short  inLastFrameIndex
)  throw () [inline]
 

void TSprite::frameTime (  long  inFrameTimeInterval  )  throw () [inline]
 

bool TSprite::fullyWithin (  const SWRect &  inTestRect  )  throw () [inline]
 

const SWMovementType TSprite::horizMoveDelta (   )  const throw () [inline]
 

void TSprite::insert (  TFrame &  newFrameP,
short  index
)  throw () [inline]
 

void TSprite::location (  SWMovementType  inHorizLoc,
SWMovementType  inVertLoc
)  throw () [inline]
 

void TSprite::lock (   )  throw () [inline]
 

See also:
SWLockSprite

void TSprite::move (  SWMovementType  inHorizLoc,
SWMovementType  inVertLoc
)  throw () [inline]
 

void TSprite::moveBounds (  const SWRect &  inMoveBoundsRect  )  throw () [inline]
 

void TSprite::moveDelta (  SWMovementType  inHorizDelta,
SWMovementType  inVertDelta
)  throw () [inline]
 

void TSprite::moveProc (  MoveProcPtr  inMoveProc  )  throw () [inline]
 

void TSprite::moveTime (  long  inTimeInterval  )  throw () [inline]
 

void TSprite::offset (  SWMovementType  inHorizOffset,
SWMovementType  inVertOffset
)  throw () [inline]
 

bool TSprite::pixelCollision (  TSprite &  inDstSprite  )  throw () [inline]
 

SpritePtr TSprite::ptr (   )  throw () [inline]
 

bool TSprite::radiusCollision (  TSprite &  inDstSprite  )  throw () [inline]
 

void TSprite::remove (  TFrame &  oldFrameP  )  throw () [inline]
 

void TSprite::unlock (   )  throw () [inline]
 

See also:
SWUnlockSprite

const SWMovementType TSprite::vertMoveDelta (   )  const throw () [inline]
 

void TSprite::visible (  bool  inIsVisible  )  throw () [inline]
 

bool TSprite::within (  const SWRect &  inTestRect  )  throw () [inline]
 

void TSprite::wrap (   )  throw () [inline]
 


Member Data Documentation

SpritePtr TSprite::mSprite [protected]
 


Generated on Sun Jun 18 14:11:05 2006 for SpriteWorld X by  doxygen 1.4.6