PAlib
|
Wrapper class for sprites. More...
#include <PA_SpriteClass.h>
Public Member Functions | |
Sprite () | |
Empty constructor. | |
Sprite (int scr, int sprn) | |
Normal constructor. | |
void | init (int scr, int sprn) |
Initialize function. | |
void | create (void *gfx, int shape, int size, int paln) |
Create sprite. | |
void | create (u16 gfx, int shape, int size, int paln) |
Create sprite from existing GFX. | |
void | remove () |
Delete sprite. | |
void | setpalette (int paln) |
Set palette. | |
void | setgfx (int gfxn) |
Set GFX. | |
void | render () |
Render (more like update position). | |
void | move (const Fixed &x, const Fixed &y) |
Move (fixed point version). | |
void | move (int x, int y) |
Move (integer version). | |
void | hflip (bool flip) |
Set HFlip. | |
void | vflip (bool flip) |
Set VFlip. | |
void | dblsize (bool dblsize) |
Set doublesize. | |
void | priority (int prio) |
Set priority. | |
void | bindrotset (int rotset) |
Bind rotset. | |
void | debindrotset () |
Debind rotset. | |
void | rotate (int angle) |
Rotate. | |
void | zoom (int zx, int zy) |
Zoom. | |
void | rotozoom (int angle, int zx, int zy) |
Rotate and zoom. | |
void | frame (int frame) |
Set frame. | |
void | startanim (int begin, int end, int speed, int animtype=ANIM_LOOP, int ncycles=-1) |
Start animation. | |
void | pauseanim (bool pause=true) |
Pause animation. | |
void | stopanim () |
Stop animation. | |
void | animspeed (int speed) |
Set animation speed. | |
Wrapper class for sprites.