Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

robsupervis.h

Go to the documentation of this file.
00001 /*
00002  * robsupervis.h
00003  * 
00004  * Copyright (c) 2000-2004 by Florian Fischer (florianfischer@gmx.de)
00005  * and Martin Trautmann (martintrautmann@gmx.de) 
00006  * 
00007  * This file may be distributed and/or modified under the terms of the 
00008  * GNU General Public License version 2 as published by the Free Software 
00009  * Foundation. 
00010  * 
00011  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013  * 
00014  */
00015 
00020 #ifndef __RT_SUPERVISORS__
00021 #define __RT_SUPERVISORS__
00022 
00023 #include "robbase.h"
00024 
00025 #include <rtstring.h>
00026 
00027 using namespace lrt;
00028 
00029 namespace rt {
00030 
00032 class StdBotCreator : public SimSupervisor {
00033 
00034 public:
00035         StdBotCreator();
00036         virtual ~StdBotCreator();
00037 
00038         virtual SimSuperPosition getPreferredPosition();
00039         virtual unsigned long getStepCycles();
00040         virtual void initSim(Simulation* const sim);
00041         virtual GameState exec(Simulation* const sim);
00042 
00043 private:
00044         GameState retState;
00045 };
00046 
00048 class StdVictorySupervisor : public SimSupervisor {
00049 
00050 public:
00051         StdVictorySupervisor();
00052         virtual ~StdVictorySupervisor();
00053 
00054         virtual SimSuperPosition getPreferredPosition();
00055         virtual unsigned long getStepCycles();
00056         virtual void initSim(Simulation* const sim);
00057         virtual GameState exec(Simulation* const sim);
00058 
00059 private:
00060         GameState retState;
00061 };
00062 
00063 
00064 
00065 
00066 } // namespace
00067 
00068 #endif

This is the RoboTour API documentation version 0.1 • Copyright (C) by Florian Fischer