#include <State.h>
Inheritance diagram for State:
Public Methods | |
State () | |
~State () | |
WDError | initRef (void *inNode, IObjectManager *inManager, IObjectEventHandler *inEventHandler) |
WDError | initRef (Actor *inParent, int inIndex, IObjectEventHandler *inEventHandler) |
WDError | initNew (Actor *inParent, IObjectEventHandler *inEventHandler) |
WDError | setImage (Image *inImage) |
WDError | getImage (void **outImage) |
Private Attributes | |
Image * | mImage |
A State defines how an actor looks under certain circumstances. It points to an image and a sound.
|
|
|
|
|
Gets the data node of the referenced Image
|
|
Creates a new State and adds it to the database
|
|
Initializes an existing State based on its parent |
|
Initializes an existing State based on data node
Reimplemented from ManagedObject. |
|
Sets which Image should be referenced
|
|
|