File diff r11853:cdcc1e5aa2fb → r11854:25988cfec487
src/ai/api/ai_controller.cpp
Show inline comments
 
@@ -2,12 +2,13 @@
 

	
 
/** @file ai_controller.cpp Implementation of AIControler. */
 

	
 
#include "../../stdafx.h"
 
#include "../../string_func.h"
 
#include "../../company_base.h"
 
#include "../../rev.h"
 
#include "table/strings.h"
 

	
 
#include "../ai.hpp"
 
#include "ai_controller.hpp"
 
#include "../ai_storage.hpp"
 
#include "../ai_instance.hpp"
 
@@ -63,12 +64,17 @@ AIController::~AIController()
 

	
 
/* static */ int AIController::GetSetting(const char *name)
 
{
 
	return AIConfig::GetConfig(_current_company)->GetSetting(name);
 
}
 

	
 
/* static */ uint AIController::GetVersion()
 
{
 
	return _openttd_newgrf_version;
 
}
 

	
 
bool AIController::LoadedLibrary(const char *library_name, int *next_number, char *fake_class_name, int fake_class_name_len)
 
{
 
	LoadedLibraryList::iterator iter = this->loaded_library.find(library_name);
 
	if (iter == this->loaded_library.end()) {
 
		*next_number = ++this->loaded_library_count;
 
		return false;