#include <Sprite.h>
Public Attributes | |
| SpriteLayerPtr | parentSpriteLayerP |
| the sprite layer this sprite is currently in | |
| SpritePtr | nextSpriteP |
| next sprite in that layer | |
| SpritePtr | prevSpriteP |
| previous sprite in that layer | |
| SpritePtr | nextActiveSpriteP |
| next active sprite in the SpriteWorld | |
| SpritePtr | nextIdleSpriteP |
| next idle sprite in the SpriteWorld | |
| SWBoolean | isVisible |
| draw the sprite? | |
| SWBoolean | needsToBeDrawn |
| sprite has changed, needs to be drawn | |
| SWBoolean | needsToBeErased |
| sprite needs to be erased onscreen | |
| SWBoolean | doFastMovingCheck |
| used by SWAnimateSpriteWorld | |
| SWRect | destFrameRect |
| frame destination rectangle | |
| SWRect | oldFrameRect |
| last frame destination rectangle | |
| SWRect | deltaFrameRect |
| union of the sprite's lastRect and curRect | |
| short | tileDepth |
| the tile layers this sprite is under | |
| DrawProcPtr | frameDrawProc |
| callback to draw sprite normally | |
| SWBoolean | destRectIsVisible |
| is destOffscreenRect visible on screen? | |
| SWBoolean | oldRectIsVisible |
| was any part of the Sprite on the screen last frame? | |
| SWRect | clippedSourceRect |
| source sprite frame rect after clipping | |
| SWRect | destOffscreenRect |
| sprite's dest rect after clipping and offset frame fields | |
| FramePtr * | frameArray |
| array of frames | |
| FramePtr | curFrameP |
| current frame | |
| long | numFrames |
| number of frames | |
| long | maxFrames |
| maximum number of frames | |
| long | frameTimeInterval |
| time interval to advance frame | |
| unsigned long | timeOfLastFrameChange |
| time (from runningTimeCount) frame was last changed | |
| long | frameAdvance |
| amount to adjust frame index | |
| long | curFrameIndex |
| current frame index | |
| long | firstFrameIndex |
| first frame to advance | |
| long | lastFrameIndex |
| last frame to advance | |
| FrameProcPtr | frameChangeProc |
| callback to change frames | |
| long | moveTimeInterval |
| time interval to move sprite | |
| unsigned long | timeOfLastMove |
| time (from runningTimeCount) sprite was last moved | |
| double | pseudoMoveTimeInterval |
| used for time-based animation | |
| double | moveTimeAccum |
| used to set the moveProcHasFired variable. | |
| SWBoolean | moveProcHasFired |
| used in time-based animations. | |
| SWRect | moveBoundsRect |
| bounds of the sprite's movement | |
| MoveProcPtr | spriteMoveProc |
| callback to handle movement | |
| MoveProcPtr | realSpriteMoveProc |
| see SWTempSpriteMoveProc for more info. | |
| CollideProcPtr | spriteCollideProc |
| callback to handle collisions | |
| AdvanceType | frameAdvanceMode |
| mode of automatic frame advancement | |
| RemovalType | spriteRemoval |
| whether to remove sprite, and if so, how. | |
| SDL_Surface * | sharedSurface |
| if common surface is used for frames, here it is | |
| DrawDataPtr | drawData |
| has various drawing style attributes | |
| long | userData |
| reserved for user | |
|
|
source sprite frame rect after clipping
|
|
|
current frame index
|
|
|
current frame
|
|
|
union of the sprite's lastRect and curRect
|
|
|
frame destination rectangle
|
|
|
sprite's dest rect after clipping and offset frame fields
|
|
|
is destOffscreenRect visible on screen?
|
|
|
used by SWAnimateSpriteWorld
|
|
|
has various drawing style attributes
|
|
|
first frame to advance
|
|
|
amount to adjust frame index
|
|
|
mode of automatic frame advancement
|
|
|
array of frames
|
|
|
callback to change frames
|
|
|
callback to draw sprite normally
|
|
|
time interval to advance frame
|
|
|
draw the sprite?
|
|
|
last frame to advance
|
|
|
maximum number of frames
|
|
|
bounds of the sprite's movement
|
|
|
used in time-based animations.
|
|
|
used to set the moveProcHasFired variable.
|
|
|
time interval to move sprite
|
|
|
sprite has changed, needs to be drawn
|
|
|
sprite needs to be erased onscreen
|
|
|
next active sprite in the SpriteWorld
|
|
|
next idle sprite in the SpriteWorld
|
|
|
next sprite in that layer
|
|
|
number of frames
|
|
|
last frame destination rectangle
|
|
|
was any part of the Sprite on the screen last frame?
|
|
|
the sprite layer this sprite is currently in
|
|
|
previous sprite in that layer
|
|
|
used for time-based animation
|
|
|
see SWTempSpriteMoveProc for more info.
|
|
|
if common surface is used for frames, here it is
|
|
|
callback to handle collisions
|
|
|
callback to handle movement
|
|
|
whether to remove sprite, and if so, how.
|
|
|
the tile layers this sprite is under
|
|
|
time (from runningTimeCount) frame was last changed
|
|
|
time (from runningTimeCount) sprite was last moved
|
|
|
reserved for user
|
1.4.6