OpenTTD Source
12.0-beta2
|
Go to the documentation of this file.
13 #include "../script/script_config.hpp"
14 #include "../company_type.h"
29 class AIInfo *GetInfo()
const;
Owner
Enum for all companies/owners.
void AddRandomDeviation() override
Randomize all settings the Script requested to be randomized.
void ClearConfigList() override
Routine that clears the config list.
void PushExtraConfigList() override
In case you have mandatory non-Script-definable config entries in your list, add them to this functio...
@ SSS_DEFAULT
Get the Script config from the current game mode.
static AIConfig * GetConfig(CompanyID company, ScriptSettingSource source=SSS_DEFAULT)
Get the config of a company.
int version
Version of the Script.
ScriptInfo * FindInfo(const char *name, int version, bool force_exact_match) override
This function should call back to the Scanner in charge of this Config, to find the ScriptInfo belong...
void SetSetting(const char *name, int value) override
Set the value of a setting for this config.
All static information from an AI like name, version, etc.
const char * name
Name of the Script.
All static information from an Script like name, version, etc.
int GetSetting(const char *name) const override
Get the value of a setting for this config.
bool ResetInfo(bool force_exact_match)
When ever the AI Scanner is reloaded, all infos become invalid.
ScriptSettingSource
Where to get the config from, either default (depends on current game mode) or force either newgame o...