Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
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