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_STAGE_FALLBACK_HPP_INCLUDED
00022 #define AI_TESTING_STAGE_FALLBACK_HPP_INCLUDED
00023
00024 #include "../composite/stage.hpp"
00025 #include "../interface.hpp"
00026
00027 #ifdef _MSC_VER
00028 #pragma warning(push)
00029
00030 #pragma warning(disable:4250)
00031 #endif
00032
00033 namespace ai {
00034
00035 namespace testing_ai_default {
00036
00037 class fallback_to_other_ai: public stage {
00038 public:
00039 fallback_to_other_ai( ai_context &context, const config &cfg );
00040
00041 ~fallback_to_other_ai();
00042
00043 bool do_play_stage();
00044
00045 void on_create();
00046
00047 config to_config() const;
00048
00049 private:
00050 const config &cfg_;
00051
00052 ai_ptr fallback_ai_;
00053 };
00054
00055 }
00056
00057 }
00058
00059 #ifdef _MSC_VER
00060 #pragma warning(pop)
00061 #endif
00062
00063 #endif