Main Page   Class Hierarchy   Compound List   File List   Compound 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 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.

KrCanvasResourceCreateCanvasResource (int frame, int *hotx, int *hoty)
 A strange -- but sometimes useful function. More...


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 Mon Sep 15 12:01:11 2003 for Kyra by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001