ai/testing/ca_testing_recruitment.hpp

Go to the documentation of this file.
00001 /* $Id: ca_testing_recruitment.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */
00002 /*
00003    Copyright (C) 2009 - 2012 by Yurii Chernyi <terraninfo@terraninfo.net>
00004    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY.
00012 
00013    See the COPYING file for more details.
00014 */
00015 
00016 /**
00017  * @file
00018  * Strategic recruitment routine, for experimentation
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 //silence "inherits via dominance" warnings
00031 #pragma warning(disable:4250)
00032 #endif
00033 
00034 namespace pathfind {
00035 
00036 struct plain_route;
00037 
00038 } //of namespace pathfind
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 } // of namespace testing_ai_default
00060 
00061 } // of namespace ai
00062 
00063 #ifdef _MSC_VER
00064 #pragma warning(pop)
00065 #endif
00066 
00067 #endif
00068 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Wed May 23 2012 01:02:33 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs