Added get_ai_info function fo ai/ai_manager to get global ai-game info
This commit is contained in:
parent
811ec926d5
commit
a3bef6ceda
2 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue