All Data Structures Files Functions Variables Enumerations Enumerator Properties Defines
/Projects/Cogito/src/Objects/TreeState.h
Go to the documentation of this file.
00001 //
00002 //  TreeState.h
00003 //  Author: Thomas Taylor
00004 //
00005 //  Basic class to hold info about a state in
00006 //  decision tree learning
00007 //
00008 //  09/02/2012: Created class
00009 //
00010 
00011 #import "cocos2d.h"
00012 #import "CommonDataTypes.h"
00013 #import "GameObject.h"
00014 #import "State.h"
00015 
00016 @interface TreeState : State
00017 
00018 {
00019     int nodeValue;
00020     Action action;
00021     
00022     TreeState* parent;
00023     CCArray* children;
00024 }
00025 
00026 -(void)addChild:(TreeState*)_state;
00027 -(CCArray*)getChildren;
00028 -(void)setAsLeafNode:(CharacterStates)_state;
00029 -(void)setParent:(TreeState*)_parent;
00030 -(BOOL)isLeaf;
00031 -(BOOL)isEqualTo:(TreeState*)_state;
00032 -(Action)getAction;
00033 -(void)setAction:(Action)_action;
00034 -(CCArray*)buildRoute:(CCArray*)_route;
00035 -(CCArray*)buildRoutes:(CCArray*)_routes;
00036 -(void)printStructure;
00037 
00038 @end