#import <CogitoAgent.h>
Public Member Functions | |
(Action) | - selectAction: |
(Action) | - chooseRandomAction: |
(CCArray *) | - calculateAvailableActions: |
(State *) | - getStateForGameObject: |
Protected Attributes | |
BOOL | learningMode |
Definition at line 14 of file CogitoAgent.h.
- (CCArray *) calculateAvailableActions: | (State*) | _state |
Returns a list of actions available for the agent to take only needs to be called once per-state
the | current object type |
Definition at line 73 of file CogitoAgent.m.
- (Action) chooseRandomAction: | (CCArray*) | _actions |
Randomly selects an action from the options
the | available options |
Definition at line 57 of file CogitoAgent.m.
- (State *) getStateForGameObject: | (GameObject*) | _object |
Looks up the state for the passed object
object | to search for |
Definition at line 105 of file CogitoAgent.m.
- (Action) selectAction: | (State*) | _state |
Decides which action to take based on knowledgebase
the | object colliding with |
Definition at line 40 of file CogitoAgent.m.
- (BOOL) learningMode [protected] |
Definition at line 17 of file CogitoAgent.h.