Overview
Chapter
|
| Constructors and Destructors | ||
| CDXSprite | Added by janni. | |
| CDXSprite | Creates a sprite object from a pointer to a CDXTile object holding the sprite's bitmap data. | |
| CDXSprite | Creates the sprite object. | |
| ~CDXSprite | Destroys the surface and frees the memory. | |
| Operations | ||
| BlkAlpha | BlkAlpha. | |
| BlkAlphaFast | BlkAlphaFast. | |
| BlkBlt | Draws a Block sprite, no transparency. | |
| BlkHFlip | Flips the sprite horizontally. | |
| BlkScaled | BlkScaled - Draws a scaled sprite, no transparency. | |
| BlkShadow | BlkShadow. | |
| BlkShadowFast | BlkShadowFast. | |
| BlkStretched | BlkStretched - Draws a stretched transparent sprite. | |
| BlkVFlip | Vertically flips the sprite. | |
| Create | Creates a sprite object from a pointer to a CDXTile object holding the sprite's bitmap data. | |
| Create | Creates the sprite object. | |
| Draw | Staging area for all blit types. | |
| Lock | ||
| SetAlphaValue | ||
| SetColorKey | ||
| SetColorKey | ||
| SetDelay | ||
| SetFrame | ||
| SetPos | ||
| SetShadowOffset | Sets the offset of the shadow to use when bltting. | |
| SetShadowValue | ||
| SetState | ||
| SetType | ||
| SetVel | ||
| SpriteHit | Checks for collisions between sprites. | |
| SpriteHitPixel | CDXSprite::SpriteHitPixel - This function first performs a bounding box collision detection check and if the 2 bounding boxes are coliding it then performs a pixel level collision detection check. | |
| TileHit | Checks for collisions between the source sprite and tiles in a map. | |
| TransAlpha | TransAlpha. | |
| TransAlphaFast | TransAlphaFast. | |
| TransAlphaMask | Draws a transparent sprite. | |
| TransBlt | Draws a transparent sprite. | |
| TransHFlip | Transparently horizontally flips the sprite. | |
| TransScaled | TransScaled - Draws a scaled transparent sprite. | |
| TransShadow | TransShadow. | |
| TransShadowFast | TransShadowFast. | |
| TransStretched | TransStretched - Draws a stretched transparent sprite. | |
| TransVFlip | Transparently vertically flips the sprite. | |
| UnLock | ||
| Init | Initializes the class. | |
| Overridables |
| Data Members | ||
| public | ||
| The sprite's angle of rotation. | ||
| Used for game timing, the time till the next frame. | ||
| Is the sprite flipped? | ||
| The current frame. | ||
| A CDXSprite pointer to the next sprite in a CDXSpriteList. | ||
| The sprite's X position. | ||
| The sprite's Y position. | ||
| A CDXSprite pointer to the previous sprite in a CDXSpriteList. | ||
| The amount by which to scale the sprite if Drawing with CDXBLT_XXXSCALED. | ||
| User defined state. Walking, jumping, etc. | ||
| Used to define the height of the stretched sprite. | ||
| Used to define the width of the stretched sprite. | ||
| A CDXTile pointer to the sprite's bitmap data. | ||
| User defined type. Health, weapon, etc. | ||
| The sprite's X velocity. | ||
| The sprite's Y velocity. | ||