- Main Page
- Classes
- Files
- Directories
- Related Pages

- Class List
- Class Hierarchy
- Class Members

# 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.
KrCanvasResource * | CreateCanvasResource (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:

- action.h