Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

CatchBall.h

Go to the documentation of this file.
00001 /* -*- Mode: C++ -*-
00002  * $Id: CatchBall.h,v 1.14 2005/12/06 10:48:20 petan Exp $
00003  *
00004  *
00005  * COPYRIGHT INFORMATION
00006  *
00007  * This file is part of RoboSoc created by Fredrik Heintz <frehe@ida.liu.se>
00008  * Copyright (C) 1999, 2000 Fredrik Heintz, Linköping University, Sweden
00009  *
00010  * You are allowed to modify and use this code as long as you retain this
00011  * notice. If you make any changes or have any comments I would appreciate
00012  * it if you send me a message. For more information, please see
00013  * http://www.ida.liu.se/~frehe/RoboCup/RoboSoc/
00014  *
00015  *
00016  * IDENTIFICATION
00017  *
00018  * Filename: CatchBall.h
00019  * Unitname: Framework/skill
00020  * $Revision: 1.14 $
00021  * Created by: Björn, Ola och Jenny 2000-09-07
00022  * Last modified by $Author: petan $ $Date: 2005/12/06 10:48:20 $
00023  *
00024  *
00025  * HISTORY
00026  * $Log: CatchBall.h,v $
00027  * Revision 1.14  2005/12/06 10:48:20  petan
00028  * Reverted to simplest possible catch due to problems
00029  *
00030  * Revision 1.13  2005/09/08 08:58:35  frehe
00031  * Implemented the reset method.
00032  *
00033  * Revision 1.12  2004/09/01 13:10:14  petan
00034  * Fixed catch ban cycles and ball prediction
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   //  TheType attributeName;
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

Generated on Mon Aug 29 07:57:54 2011 for RoboSoc by doxygen1.3-rc3