OpenTTD Source  13.0-beta1
ai_instance.cpp File Reference
#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 "../script/script_cmd.h"
#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 (Commands cmd, const CommandCost &result, TileIndex tile, const CommandDataBuffer &data, CommandDataBuffer result_data)
 DoCommand callback function for all commands executed by AIs. More...
 

Detailed Description

Implementation of AIInstance.

Definition in file ai_instance.cpp.

Function Documentation

◆ CcAI()

void CcAI ( Commands  cmd,
const CommandCost &  result,
TileIndex  tile,
const CommandDataBuffer &  data,
CommandDataBuffer  result_data 
)

DoCommand callback function for all commands executed by AIs.

Parameters
cmdcmd as given to DoCommandPInternal.
resultThe result of the command.
tileThe tile on which the command was executed.
dataCommand data as given to Command<>::Post.
result_dataAdditional returned data from the command.

Definition at line 102 of file ai_instance.cpp.

Referenced by AIInstance::GetDoCommandCallback().