All Data Structures Files Functions Variables Enumerations Enumerator Properties Defines
/Projects/Cogito/src/Singletons/AgentStats.h
Go to the documentation of this file.
00001 //
00002 //  AgentStats.h
00003 //  Author: Thomas Taylor
00004 //
00005 //  Used to calculate various stats
00006 //
00007 //  20/02/2011: Created class
00008 //
00009 
00010 #import "cocos2d.h"
00011 #import "GameObject.h"
00012 
00013 @interface AgentStats : NSObject
00014 
00015 {
00016     int episodesCompleted;
00017     CCArray* learningLengths;
00018     CCArray* nonLearningLengths;
00019     CCArray* learningActions;
00020     CCArray* nonLearningActions;
00021 }
00022 
00023 +(AgentStats*)sharedAgentStats;
00024 -(void)addEpisodeWithLength:(int)_time andActions:(int)_actions learningMode:(BOOL)_learning;
00025 -(void)addEpisode;
00026 -(int)averageTimeLearning;
00027 -(int)averageTimeNonLearning;
00028 -(int)averageActionsLearning;
00029 -(int)averageActionsNonLearning;
00030 -(int)episodesCompleted;
00031 -(void)clearTempData;
00032 
00033 @end