All Data Structures Files Functions Variables Enumerations Enumerator Properties Defines
/Projects/Cogito/src/Objects/QState.h
Go to the documentation of this file.
00001 //
00002 //  QState.h
00003 //  Author: Thomas Taylor
00004 //
00005 //  Basic class to hold info about a state in Q-learning
00006 //
00007 //  06/02/2012: Created class
00008 //
00009 
00010 #import "cocos2d.h"
00011 #import "CommonDataTypes.h"
00012 #import "GameObject.h"
00013 #import "State.h"
00014 
00015 @interface QState : State
00016 
00017 {
00018     float reward;
00019 }
00020 
00021 -(id)initStateForObject:(GameObject*)_object withReward:(float)_reward;
00022 -(float)calculateMaxQValue;
00023 -(Action)getOptimumAction;
00024 -(float)getQValueForAction:(Action)_action;
00025 -(void)setQValue:(float)_qValue forAction:(Action)_action;
00026 -(float)getReward;
00027 
00028 @end