|
OpenTTD AI API
14.0-RC1
|
Class to switch the current time. More...
Public Member Functions | |
| AITimeMode (bool calendar) | |
| Creating an instance of this class switches the time mode used for queries and commands. More... | |
Static Public Member Functions | |
| static bool | IsCalendarMode () |
| Check if the script is operating in calendar time mode, or in economy time mode. More... | |
Class to switch the current time.
If you create an instance of this class, the mode will be switched to either calendar time or economy time mode.
| AITimeMode::AITimeMode | ( | bool | calendar | ) |
Creating an instance of this class switches the time mode used for queries and commands.
Calendar time is used by OpenTTD for technology like vehicle introductions and expiration, and variable snowline. It can be sped up or slowed down by the player. Economy time always runs at the same pace and handles things like cargo production, everything related to money, etc.
| Calendar | Should we use calendar time mode? (Set to false for economy time mode.) |
|
static |
Check if the script is operating in calendar time mode, or in economy time mode.
See AITimeMode() for more information.
1.8.17