|
OpenTTD Source 20251104-master-g3befbdd52f
|
Implementation of AIInstance. More...
#include "../stdafx.h"#include "../debug.h"#include "../error.h"#include "../company_base.h"#include "../company_func.h"#include "../script/squirrel_class.hpp"#include "ai_config.hpp"#include "ai.hpp"#include "../script/script_storage.hpp"#include "../script/script_cmd.h"#include "../script/script_gui.h"#include "ai_info.hpp"#include "ai_instance.hpp"#include "table/strings.h"#include "../script/api/template/template_text.sq.hpp"#include "../script/api/ai/ai_includes.hpp"#include "../safeguards.h"Go to the source code of this file.
Functions | |
| void | CcAI (Commands cmd, const CommandCost &result, const CommandDataBuffer &data, CommandDataBuffer result_data) |
| DoCommand callback function for all commands executed by AIs. | |
Implementation of AIInstance.
Definition in file ai_instance.cpp.
| void CcAI | ( | Commands | cmd, |
| const CommandCost & | result, | ||
| const CommandDataBuffer & | data, | ||
| CommandDataBuffer | result_data | ||
| ) |
DoCommand callback function for all commands executed by AIs.
| cmd | cmd as given to DoCommandPInternal. |
| result | The result of the command. |
| data | Command data as given to Command<>::Post. |
| result_data | Additional returned data from the command. |
Definition at line 107 of file ai_instance.cpp.
References _current_company, and Pool< Titem, Tindex, Tgrowth_step, Tpool_type, Tcache >::PoolItem<&_company_pool >::GetIfValid().