wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src ai.hpp ai_attack.cpp


From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src ai.hpp ai_attack.cpp
Date: Sun, 28 Nov 2004 05:35:35 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    04/11/28 10:29:30

Modified files:
        src            : ai.hpp ai_attack.cpp 

Log message:
        Remove unused parameters.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/ai.hpp.diff?tr1=1.56&tr2=1.57&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/ai_attack.cpp.diff?tr1=1.55&tr2=1.56&r1=text&r2=text

Patches:
Index: wesnoth/src/ai.hpp
diff -u wesnoth/src/ai.hpp:1.56 wesnoth/src/ai.hpp:1.57
--- wesnoth/src/ai.hpp:1.56     Sun Sep 19 20:42:35 2004
+++ wesnoth/src/ai.hpp  Sun Nov 28 10:29:30 2004
@@ -1,4 +1,4 @@
-/* $Id: ai.hpp,v 1.56 2004/09/19 20:42:35 Sirp Exp $ */
+/* $Id: ai.hpp,v 1.57 2004/11/28 10:29:30 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -104,10 +104,9 @@
 
        struct attack_analysis
        {
-               void analyze(const gamemap& map, std::map<location,unit>& units,
-                            const gamestatus& status, const game_data& info, 
int sims,
-                                        class ai& ai_obj, const move_map& 
dstsrc, const move_map& srcdst,
-                                        const move_map& enemy_dstsrc, const 
move_map& enemy_srcdst);
+               void analyze(const gamemap& map, std::map<location,unit>& 
units, int sims,
+                            class ai& ai_obj, const move_map& dstsrc, const 
move_map& srcdst,
+                            const move_map& enemy_dstsrc, const move_map& 
enemy_srcdst);
 
                double rating(double aggression, class ai& ai_obj) const;
 
Index: wesnoth/src/ai_attack.cpp
diff -u wesnoth/src/ai_attack.cpp:1.55 wesnoth/src/ai_attack.cpp:1.56
--- wesnoth/src/ai_attack.cpp:1.55      Sat Nov 27 08:41:49 2004
+++ wesnoth/src/ai_attack.cpp   Sun Nov 28 10:29:30 2004
@@ -1,4 +1,4 @@
-/* $Id: ai_attack.cpp,v 1.55 2004/11/27 08:41:49 silene Exp $ */
+/* $Id: ai_attack.cpp,v 1.56 2004/11/28 10:29:30 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -181,7 +181,7 @@
 
                        cur_analysis.support += best_support;
 
-                       
cur_analysis.analyze(map_,units_,state_,gameinfo_,50,*this,dstsrc,srcdst,enemy_dstsrc,enemy_srcdst);
+                       cur_analysis.analyze(map_, units_, 50, *this, dstsrc, 
srcdst, enemy_dstsrc, enemy_srcdst);
 
                        
if(cur_analysis.rating(current_team().aggression(),*this) > rating_to_beat) {
 
@@ -306,12 +306,9 @@
        return current_choice;
 }
 
-void ai::attack_analysis::analyze(const gamemap& map,
-                                  unit_map& units,
-                                                             const gamestatus& 
status,
-                                                             const game_data& 
info, int num_sims, ai& ai_obj,
-                                                                 const 
ai::move_map& dstsrc, const ai::move_map& srcdst,
-                                                                 const 
ai::move_map& enemy_dstsrc, const ai::move_map& enemy_srcdst)
+void ai::attack_analysis::analyze(const gamemap& map, unit_map& units, int 
num_sims, ai& ai_obj,
+                                  const ai::move_map& dstsrc, const 
ai::move_map& srcdst,
+                                  const ai::move_map& enemy_dstsrc, const 
ai::move_map& enemy_srcdst)
 {
        const unit_map::const_iterator defend_it = units.find(target);
        assert(defend_it != units.end());




reply via email to

[Prev in Thread] Current Thread [Next in Thread]