00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00021 #ifndef __RT_RATING__
00022 #define __RT_RATING__
00023
00024 #include "robfrontend.h"
00025 #include "robmanage.h"
00026 #include "robbase.h"
00027
00028 #include <rtsystem.h>
00029
00030 using namespace lrt;
00031
00032 namespace rt {
00033
00037 class RatingPlugin : public FrontendPlugin
00038 {
00039 public:
00040 virtual FpInterpretePos getInterpretePos();
00041 virtual String getName();
00042 virtual String getHelpText();
00043 virtual bool interpreteParams(const Array<String>& params, Array<bool>& used);
00044 virtual void fillOptions(SimOptions& options);
00045 RatingPlugin(Frontend* parent);
00046 ~RatingPlugin() {}
00047 private:
00048 int endCycles;
00049 };
00050
00051 class RatingSimSupervisor : public SimSupervisor
00052 {
00053 public:
00054 RatingSimSupervisor(int endCycles);
00055 virtual SimSuperPosition getPreferredPosition();
00056 virtual unsigned long getStepCycles();
00057 virtual GameState exec(Simulation* const curSim);
00058 virtual void exitSim(Simulation* const curSim, const GameState& simResult);
00059 private:
00060 int endCycles;
00061 GameState retState;
00062 };
00063
00064 }
00065
00066 #endif
00067