Added get_ai_info function fo ai/ai_manager to get global ai-game info

This commit is contained in:
Iurii Chernyi 2009-04-29 01:28:16 +00:00
parent 811ec926d5
commit a3bef6ceda
2 changed files with 12 additions and 0 deletions

View file

@ -646,6 +646,10 @@ ai_interface::info& ai_manager::get_active_ai_info_for_side( int /*side*/ )
}
ai_interface::info& ai_manager::get_ai_info()
{
return *ai_info_;
}
// =======================================================================
// SET active AI parameters

View file

@ -353,6 +353,14 @@ public:
*/
static ai_interface::info& get_active_ai_info_for_side( int side );
/**
* Gets global AI-game info
* @return a reference to the AI-game info.
*/
static ai_interface::info& get_ai_info();
/**
* Gets AI memory for active AI of the given @a side.
* @note Running this command may invalidate references previously returned