00001 /* $Id: stage_side_formulas.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 * Stage which executes side formulas 00019 * */ 00020 00021 00022 #ifndef AI_FORMULA_STAGE_SIDE_FORMULAS_HPP_INCLUDED 00023 #define AI_FORMULA_STAGE_SIDE_FORMULAS_HPP_INCLUDED 00024 00025 #include "../composite/stage.hpp" 00026 #include "../../formula_fwd.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 ai { 00035 00036 class formula_ai; 00037 00038 class stage_side_formulas: public stage { 00039 public: 00040 stage_side_formulas( ai_context &context, const config &cfg, formula_ai &fai ); 00041 00042 virtual ~stage_side_formulas(); 00043 00044 bool do_play_stage(); 00045 00046 void on_create(); 00047 00048 config to_config() const; 00049 00050 private: 00051 const config &cfg_; 00052 formula_ai &fai_; 00053 game_logic::const_formula_ptr move_formula_; 00054 00055 }; 00056 00057 } //end of namespace ai 00058 00059 #ifdef _MSC_VER 00060 #pragma warning(pop) 00061 #endif 00062 00063 #endif
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:02:44 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |