CRM64Pro GDK v0.11.0
A free cross-platform game development kit built on top of SDL 3.0
|
Inherits CRM64Pro::ObjectBase.
Public Member Functions | |
Sint32 | info (Sint32 iMode=0) |
Request Sprite object information. | |
Sint32 | getName (string &sName) |
Get the name. | |
Uint32 | getID () |
Get the ID. | |
Sint32 | assignImage (Sint32 idImage, Sint32 iOwnership=0) |
Assign an Image to this sprite. | |
Sint32 | getImage () |
Get the assigned Image of this sprite. | |
Sint32 | setOffset (Sint32 iX, Sint32 iY) |
Set the sprite offsets for creating the animations and frames. | |
Sint32 | getOffset (Sint32 *iX, Sint32 *iY) |
Get the sprite offsets (frames and animations). | |
Sint32 | pause () |
Pause the sprite animation. | |
Sint32 | resume () |
Resume from a previous paused sprite animation. | |
Sint32 | status () |
Get the sprite status. | |
Sint32 | setSpeed (float fSpeed) |
Set the sprite speed. | |
Sint32 | getAnimNumber () |
Get number of animations. | |
Sint32 | getAnimCurrent () |
Get current animation number. | |
Sint32 | selectAnim (Sint32 iAnim) |
Select an animation by state or by number. | |
Sint32 | setAnimType (Sint32 iAnim, Sint32 iType) |
Set the animation type. | |
Sint32 | getAnimType (Sint32 iAnim, Sint32 *iType) |
Get the animation type. | |
Sint32 | setAnimState (Sint32 iAnim, Sint32 iState) |
Set the animation state. | |
Sint32 | getAnimState (Sint32 iAnim, Sint32 *iState) |
Get the animation state. | |
Sint32 | orderAnimState (Sint32 iState=-1) |
Ordering the low-state values. | |
Sint32 | setAnimHotSpot (Sint32 iAnim, Sint32 iHotX, Sint32 iHotY) |
Set the animation hotspot. | |
Sint32 | getAnimHotSpot (Sint32 iAnim, Sint32 *iHotX, Sint32 *iHotY) |
Get the animation hotspot. | |
Sint32 | setAnimRange (Sint32 iAnim, Sint32 iFrameStart, Sint32 iFrameEnd) |
Set the animation frame range. | |
Sint32 | getAnimRange (Sint32 iAnim, Sint32 *iFrameStart, Sint32 *iFrameEnd) |
Get the animation frame range. | |
Sint32 | getFrameNumber (Sint32 iAnim) |
Get number of frames for the given animation. | |
Sint32 | getFrameCurrent () |
Get current frame number for the given animation. | |
Sint32 | selectFrame (Sint32 iAnim, Sint32 iFrame) |
Select a frame for the given animation. | |
Sint32 | setFrameTime (Sint32 iAnim, Sint32 iFrame, Uint16 iTime) |
Set the frame time duration. | |
Sint32 | getFrameTime (Sint32 iAnim, Sint32 iFrame, Uint16 *iTime) |
Get the frame time duration. | |
Sint32 | setPosition (Sint32 iX, Sint32 iY, Sint32 iInterpolation=0) |
Set the sprite position. | |
Sint32 | getPosition (Sint32 *iX, Sint32 *iY) |
Get the sprite position. | |
Sint32 | render (Sint32 idRes=0) |
Render the sprite. | |
Sint32 | save (const string &sFileCDC) |
Save the sprite to a CDC file. | |
Sint32 | save (Sint32 idCDC) |
Save the sprite to a CDC file. | |
Sprite Object class.