ai/formula/function_table.hpp

Go to the documentation of this file.
00001 /*
00002    Copyright (C) 2009 - 2012 by Bartosz Waresiak <dragonking@o2.pl>
00003    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
00004 
00005    This program is free software; you can redistribute it and/or modify
00006    it under the terms of the GNU General Public License as published by
00007    the Free Software Foundation; either version 2 of the License, or
00008    (at your option) any later version.
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY.
00011 
00012    See the COPYING file for more details.
00013 */
00014 
00015 #ifndef FORMULA_AI_FUNCTION_TABLE_HPP_INCLUDED
00016 #define FORMULA_AI_FUNCTION_TABLE_HPP_INCLUDED
00017 
00018 #include "formula_function.hpp"
00019 
00020 #include <set>
00021 
00022 namespace ai {
00023     class formula_ai;
00024 }
00025 
00026 namespace game_logic {
00027 
00028 class ai_function_symbol_table : public function_symbol_table {
00029 
00030 public:
00031     explicit ai_function_symbol_table(ai::formula_ai& ai) :
00032         ai_(ai),
00033         move_functions()
00034     {}
00035 
00036     expression_ptr create_function(const std::string& fn,
00037                                    const std::vector<expression_ptr>& args) const;
00038 
00039 private:
00040     ai::formula_ai& ai_;
00041     std::set<std::string> move_functions;
00042 };
00043 
00044 }
00045 
00046 #endif  /* FORMULA_AI_FUNCTION_TABLE_HPP_INCLUDED */
00047 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:02:44 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs