#include <action.h>
Public Methods | |
KrAction (SDL_RWops *data) | |
Create the action by reading from a file. Used by the sprite constructor. | |
const std::string & | Name () const |
Each action has a name (ex, "Walking"). | |
U32 | Id () const |
Each action has a unique id. (ex, WALKING). | |
int | NumFrames () const |
Total number of frames. | |
const KrRle & | Frame (int i) const |
Get a frame. | |
KrCanvasResource * | CreateCanvasResource (int frame, int *hotx, int *hoty) |
A strange -- but sometimes useful function. More... |
|
A strange -- but sometimes useful function. Creates a canvas from this action and returns it. |