[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src ai.cpp ai_move.cpp
From: |
Guillaume Melquiond |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src ai.cpp ai_move.cpp |
Date: |
Sun, 19 Sep 2004 07:36:41 -0400 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Guillaume Melquiond <address@hidden> 04/09/19 11:30:23
Modified files:
src : ai.cpp ai_move.cpp
Log message:
Switched to new logging system
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/ai.cpp.diff?tr1=1.115&tr2=1.116&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/ai_move.cpp.diff?tr1=1.47&tr2=1.48&r1=text&r2=text
Patches:
Index: wesnoth/src/ai.cpp
diff -u wesnoth/src/ai.cpp:1.115 wesnoth/src/ai.cpp:1.116
--- wesnoth/src/ai.cpp:1.115 Sat Sep 18 21:27:39 2004
+++ wesnoth/src/ai.cpp Sun Sep 19 11:30:23 2004
@@ -1,4 +1,4 @@
-/* $Id: ai.cpp,v 1.115 2004/09/18 21:27:39 silene Exp $ */
+/* $Id: ai.cpp,v 1.116 2004/09/19 11:30:23 silene Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -1122,11 +1122,11 @@
if(map_.gives_healing(dst) && (units_.find(dst)
== units_.end() || dst == u_it->first)) {
const double vuln =
power_projection(it.first->first,
enemy_srcdst,enemy_dstsrc);
- std::cerr << "found village with
vulnerability: " << vuln << "\n";
+ LOG_AI << "found village with
vulnerability: " << vuln << "\n";
if(vuln < best_vulnerability ||
best_loc == it.second) {
best_vulnerability = vuln;
best_loc = it.first;
- std::cerr << "chose village "
<< (dst.x+1) << "," << (dst.y+1) << "\n";
+ LOG_AI << "chose village " <<
(dst.x+1) << "," << (dst.y+1) << "\n";
}
}
@@ -1138,7 +1138,7 @@
const location& src = best_loc->first;
const location& dst = best_loc->second;
- std::cerr << "moving unit to village for
healing...\n";
+ LOG_AI << "moving unit to village for
healing...\n";
move_unit(src,dst,possible_moves);
return true;
Index: wesnoth/src/ai_move.cpp
diff -u wesnoth/src/ai_move.cpp:1.47 wesnoth/src/ai_move.cpp:1.48
--- wesnoth/src/ai_move.cpp:1.47 Sat Sep 18 21:27:39 2004
+++ wesnoth/src/ai_move.cpp Sun Sep 19 11:30:23 2004
@@ -1,4 +1,4 @@
-/* $Id: ai_move.cpp,v 1.47 2004/09/18 21:27:39 silene Exp $ */
+/* $Id: ai_move.cpp,v 1.48 2004/09/19 11:30:23 silene Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -456,7 +456,7 @@
}
}
- std::cerr << tg->value << "/" << cur_route.move_left << " = "
<< rating << "\n";
+ LOG_AI << tg->value << "/" << cur_route.move_left << " = " <<
rating << "\n";
if(best_target == targets.end() || rating > best_rating) {
best_rating = rating;
best_target = tg;
@@ -465,7 +465,7 @@
}
}
- std::cerr << "chose target...\n";
+ LOG_AI << "chose target...\n";
if(best_target == targets.end()) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Wesnoth-cvs-commits] wesnoth/src ai.cpp ai_move.cpp,
Guillaume Melquiond <=