Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef AI_TESTING_CA_TESTING_RECRUITMENT_HPP_INCLUDED
00022 #define AI_TESTING_CA_TESTING_RECRUITMENT_HPP_INCLUDED
00023
00024 #include "../composite/rca.hpp"
00025
00026 #include "../../unit_map.hpp"
00027
00028 #ifdef _MSC_VER
00029 #pragma warning(push)
00030
00031 #pragma warning(disable:4250)
00032 #endif
00033
00034 namespace pathfind {
00035
00036 struct plain_route;
00037
00038 }
00039
00040 namespace ai {
00041
00042 namespace testing_ai_default {
00043
00044 class testing_recruitment_phase : public candidate_action {
00045 public:
00046
00047 testing_recruitment_phase( rca_context &context, const config &cfg );
00048
00049 virtual ~testing_recruitment_phase();
00050
00051 virtual double evaluate();
00052
00053 virtual void execute();
00054
00055 protected:
00056 void do_recruit(int max_units_to_recruit, double quality_factor);
00057 };
00058
00059 }
00060
00061 }
00062
00063 #ifdef _MSC_VER
00064 #pragma warning(pop)
00065 #endif
00066
00067 #endif
00068