00001 /* $Id: testing.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 * Gather statistics important for AI testing and output them 00019 */ 00020 00021 #ifndef AI_TESTING_HPP_INCLUDED 00022 #define AI_TESTING_HPP_INCLUDED 00023 00024 #include "../global.hpp" 00025 00026 #include <vector> 00027 00028 class ai_testing{ 00029 public: 00030 /* 00031 * Log at start of the turn 00032 */ 00033 static void log_turn_start( unsigned int side ); 00034 00035 00036 /* 00037 * Log at end of the turn 00038 */ 00039 static void log_turn_end( unsigned int side ); 00040 00041 /* 00042 * Log in case of draw 00043 */ 00044 static void log_draw(); 00045 00046 00047 /* 00048 * Log in case of victory 00049 * teams vector of winner teams 00050 */ 00051 static void log_victory( std::vector<unsigned int> teams ); 00052 00053 00054 /* 00055 * Log at game start 00056 */ 00057 static void log_game_start(); 00058 00059 00060 /* 00061 * Log at game end 00062 */ 00063 static void log_game_end(); 00064 00065 protected: 00066 00067 static void log_turn( const char *msg, unsigned int side ); 00068 00069 }; 00070 00071 #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 |