KrAction Class Reference

An action is contained by a sprite resource and is itself a container for frames. More...

#include <action.h>

List of all members.

Public Member Functions

 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.
KrCanvasResourceCreateCanvasResource (int frame, int *hotx, int *hoty)
 A strange -- but sometimes useful function.


Detailed Description

An action is contained by a sprite resource and is itself a container for frames.

See also:
KrSprite


Member Function Documentation

KrCanvasResource* KrAction::CreateCanvasResource ( int  frame,
int *  hotx,
int *  hoty 
)

A strange -- but sometimes useful function.

Creates a canvas from this action and returns it.


The documentation for this class was generated from the following file:
Generated on Thu Jul 20 20:45:32 2006 for Kyra by  doxygen 1.4.7