Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

State Class Reference
[Managed Objects]

State Class Definition. More...

#include <State.h>

Inheritance diagram for State:

Inheritance graph
[legend]
Collaboration diagram for State:

Collaboration graph
[legend]
List of all members.

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

ImagemImage

Detailed Description

State Class Definition.

A State defines how an actor looks under certain circumstances. It points to an image and a sound.


Constructor & Destructor Documentation

State::State  
 

State::~State  
 


Member Function Documentation

WDError State::getImage void **    outImage
 

Gets the data node of the referenced Image

Parameters:
outImage  Image which should be referenced

WDError State::initNew Actor   inParent,
IObjectEventHandler   inEventHandler
 

Creates a new State and adds it to the database

Parameters:
inParent  Actor in which the State is to be added
inEventHandler  EventHandler which listens to changes on the data node (can be NULL)

WDError State::initRef Actor   inParent,
int    inIndex,
IObjectEventHandler   inEventHandler
 

Initializes an existing State based on its parent

Parameters:
inParent  Actor in which the State is
inIndex  Index of the State in the Actor
inEventHandler  EventHandler which listens to changes on the data node (can be NULL)

WDError State::initRef void *    inNode,
IObjectManager   inManager,
IObjectEventHandler   inEventHandler
 

Initializes an existing State based on data node

Parameters:
inNode  Data node representing the State
inManager  Database from which the data node was taken
inEventHandler  EventHandler which listens to changes on the data node (can be NULL)

Reimplemented from ManagedObject.

WDError State::setImage Image   inImage
 

Sets which Image should be referenced

Parameters:
inImage  Image data node which should be referenced


Member Data Documentation

Image* State::mImage [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Apr 15 15:23:22 2002 for WhiteDwarf by doxygen1.2.15