Author: boucman
Date: Mon Apr 13 18:44:31 2009
New Revision: 34878

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34878&view=rev
Log:
remove the strategic type, the idea is not mature enough at this point

Modified:
    trunk/src/formula_candidates.cpp
    trunk/src/formula_candidates.hpp

Modified: trunk/src/formula_candidates.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/formula_candidates.cpp?rev=34878&r1=34877&r2=34878&view=diff
==============================================================================
--- trunk/src/formula_candidates.cpp (original)
+++ trunk/src/formula_candidates.cpp Mon Apr 13 18:44:31 2009
@@ -44,8 +44,6 @@
                                new_ca = candidate_action_ptr(new 
attack_candidate_action(name, type, rc_action, function_table ));
                        } else if( type == "support") {
                                new_ca = candidate_action_ptr(new 
support_candidate_action(name, type, rc_action, function_table ));
-                       } else if( type == "strategic") {
-                               new_ca = candidate_action_ptr(new 
strategic_candidate_action(name, type, rc_action, function_table ));
                        } else {
                                ERR_AI << "Unknown candidate action type: " << 
type << "\n";
                                continue;
@@ -233,17 +231,6 @@
        callable.add("target", enemy_unit_callable);
 }
 
-strategic_candidate_action::strategic_candidate_action(const std::string& 
name, const std::string& type,const config& cfg, function_symbol_table* 
function_table) :
-       base_candidate_action(name, type, cfg, function_table)
-{}
-
-void strategic_candidate_action::evaluate(formula_ai* ai, unit_map& units)
-{
-
-       game_logic::map_formula_callable callable(static_cast<const 
formula_callable*>(ai));
-       callable.add_ref();
-       score_ = execute_formula(eval_, callable, ai);
-}
 
 support_candidate_action::support_candidate_action(const std::string& name, 
const std::string& type,const config& cfg, function_symbol_table* 
function_table) :
        candidate_action_with_filters(name, type, cfg, function_table)

Modified: trunk/src/formula_candidates.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/formula_candidates.hpp?rev=34878&r1=34877&r2=34878&view=diff
==============================================================================
--- trunk/src/formula_candidates.hpp (original)
+++ trunk/src/formula_candidates.hpp Mon Apr 13 18:44:31 2009
@@ -143,12 +143,6 @@
        unit_map::const_unit_iterator enemy_unit_;
 };
 
-class strategic_candidate_action : public base_candidate_action {
-public:
-       strategic_candidate_action(const std::string& name, const std::string& 
type,const config& cfg, function_symbol_table* function_table);
-       virtual void evaluate(formula_ai* ai, unit_map& units);
-};
-
 class support_candidate_action : public candidate_action_with_filters {
 public:
        support_candidate_action(const std::string& name, const std::string& 
type,const config& cfg, function_symbol_table* function_table);


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to