OpenTTD Source 20260711-master-g3fb3006dff
ai_core.cpp File Reference

Implementation of AI. More...

#include "../stdafx.h"
#include "../core/backup_type.hpp"
#include "../core/bitmath_func.hpp"
#include "../company_base.h"
#include "../company_func.h"
#include "../network/network.h"
#include "../window_func.h"
#include "../framerate_type.h"
#include "ai_scanner.hpp"
#include "ai_instance.hpp"
#include "ai_config.hpp"
#include "ai_info.hpp"
#include "ai.hpp"
#include "../safeguards.h"

Go to the source code of this file.

Functions

static constexpr PerformanceElement GetAIPerformanceElement (CompanyID company)
 Get the PerformanceElement for the AI of the given company.

Detailed Description

Implementation of AI.

Definition in file ai_core.cpp.

Function Documentation

◆ GetAIPerformanceElement()

constexpr PerformanceElement GetAIPerformanceElement ( CompanyID company)
staticconstexpr

Get the PerformanceElement for the AI of the given company.

Parameters
companyThe company to get the PerformanceElement for.
Returns
The PerformanceElement.

Definition at line 77 of file ai_core.cpp.

References AI0.

Referenced by AI::GameLoop(), and AI::Stop().