OpenTTD Source
1.11.2
|
#include "../stdafx.h"
#include "../debug.h"
#include "../error.h"
#include "../script/squirrel_class.hpp"
#include "ai_config.hpp"
#include "ai_gui.hpp"
#include "ai.hpp"
#include "../script/script_storage.hpp"
#include "ai_info.hpp"
#include "ai_instance.hpp"
#include "../script/api/template/template_text.hpp.sq"
#include "../script/api/ai/ai_includes.hpp"
#include "../company_base.h"
#include "../company_func.h"
#include "../safeguards.h"
Go to the source code of this file.
Functions | |
void | CcAI (const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2, uint32 cmd) |
DoCommand callback function for all commands executed by AIs. More... | |
Implementation of AIInstance.
Definition in file ai_instance.cpp.
void CcAI | ( | const CommandCost & | result, |
TileIndex | tile, | ||
uint32 | p1, | ||
uint32 | p2, | ||
uint32 | cmd | ||
) |
DoCommand callback function for all commands executed by AIs.
result | The result of the command. |
tile | The tile on which the command was executed. |
p1 | p1 as given to DoCommandPInternal. |
p2 | p2 as given to DoCommandPInternal. |
cmd | cmd as given to DoCommandPInternal. |
Definition at line 101 of file ai_instance.cpp.
References _current_company, ScriptInstance::Continue(), ScriptInstance::DoCommandCallback(), and Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_company_pool >::GetIfValid().
Referenced by AIInstance::GetDoCommandCallback().