00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00050 #ifndef CATCHBALL_H
00051 #define CATCHBALL_H
00052
00053
00054 #include "machine_dependent_compiler_directives.h"
00055 #include "Skill.h"
00056
00057 RS_BEGIN_NAMESPACE
00058
00059 class BallView;
00060 class AgentView;
00061
00079 class CatchBall : public Skill {
00080 public:
00082 CatchBall();
00083
00085 virtual ~CatchBall();
00086
00087
00089 virtual void reset();
00090
00095 virtual Plan generatePlan();
00096
00099 virtual AgentStep generateStep();
00100
00103 virtual FuzzyBool persistent();
00104
00107 virtual FuzzyBool applicable();
00108
00111 virtual FuzzyBool succeed() { return FuzzyBool(0.5); };
00112
00115 virtual FuzzyBool failed() { return FuzzyBool(0.5); };
00116
00117
00118 private:
00120
00121
00123 CatchBall(const CatchBall&);
00125 CatchBall& operator= (const CatchBall&);
00126
00127 protected:
00128 BallView* ballView;
00129 AgentView* agentView;
00130 };
00131
00132
00133 RS_END_NAMESPACE
00134
00135 #endif // !CATCHBALL_H