All Data Structures Files Functions Variables Enumerations Enumerator Properties Defines
Public Member Functions | Protected Attributes
State Class Reference

#import <State.h>

Inheritance diagram for State:
QState TreeState

Public Member Functions

(id) - initStateForObject:
(Action- getOptimumAction
(CCArray *) - getActions
(void) - setActions:
(GameObject *) - getGameObject

Protected Attributes

GameObjectgameObject
CCArray * actions

Detailed Description

Definition at line 14 of file State.h.


Member Function Documentation

- (CCArray *) getActions

Returns the actions

Returns:
The actions as a CCArray

Definition at line 62 of file State.m.

Returns the GameObject

Returns:
the GameObject

Definition at line 82 of file State.m.

Returns the best action

Returns:
the action

Reimplemented in QState.

Definition at line 52 of file State.m.

- (id) initStateForObject: (GameObject*)  _object

Initialises the state

Returns:
self

Definition at line 34 of file State.m.

- (void) setActions: (CCArray*)  _actions

Converts the passed CCArray of actions into an NSDictionary with zeroed Q-values

Parameters:
actionsto convert

Definition at line 73 of file State.m.


Field Documentation

- (CCArray*) actions [protected]

Definition at line 20 of file State.h.

- (GameObject*) gameObject [protected]

Definition at line 17 of file State.h.


The documentation for this class was generated from the following files: