36 extern void MakeNewgameSettingsLive();
38 void InitializeSound();
40 void InitializeVehicles();
42 void InitializeRoadGui();
43 void InitializeAirportGui();
44 void InitializeDockGui();
46 void InitializeIndustries();
48 void InitializeTrees();
54 void InitializeGame(uint size_x, uint size_y,
bool reset_date,
bool reset_settings)
65 _cur_tileloop_tile = 1;
67 if (reset_settings) MakeNewgameSettingsLive();
85 InitializeLandscape();
88 InitializeAirportGui();
93 InitializeIndustries();
95 InitializeBuildingCounts();
105 #ifdef ENABLE_NETWORK void InitializeRailGui()
Initialize rail building GUI settings.
GameSettings _settings_game
Game settings of a running game or the scenario editor.
GRFConfig * _grfconfig
First item in list of current GRF set up.
Functions related to dates.
Window for configuring the AIs
Functions to be called to log possibly unsafe game events.
void InitializeOldNames()
Initialize the old names table memory.
void GamelogStartAction(GamelogActionType at)
Stores information about new action, but doesn't allocate it Action is allocated only when there is a...
void InitializeCompanies()
Initialize the pool of companies.
void GamelogRevision()
Logs a change in game revision.
void AllocateMap(uint size_x, uint size_y)
(Re)allocates a map with the given dimension
static void Initialize()
Initialize the AI system.
void InitializeAIGui()
Reset the AI windows to their initial state.
static void Clean(PoolType)
Clean all pools of given type.
void ResetPersistentNewGRFData()
Reset NewGRF data which is stored persistently in savegames.
Normal pool containing game objects.
Defintion of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle...
void InitializeEconomy()
Resets economy to initial values.
void SetDate(Date date, DateFract fract)
Set the date.
void GamelogReset()
Resets and frees all memory allocated - used before loading or starting a new game.
void InitializeCheats()
Reinitialise all the cheats.
Functions related to NewGRF houses.
Functions related to the gfx engine.
void InitNewsItemStructs()
Initialize the news-items data structures.
void GamelogMode()
Logs a change in game mode (scenario editor or game)
Definition of base types and functions in a cross-platform compatible way.
A number of safeguards to prevent using unsafe methods.
Declaration of link graph schedule used for cargo distribution.
void GamelogGRFAddList(const GRFConfig *newg)
Logs adding of list of GRFs.
PauseModeByte _pause_mode
The current pause mode.
void UnInitWindowSystem()
Close down the windowing system.
void GamelogStopAction()
Stops logging of any changes.
void InitializeMusic()
Initialize the playlists.
static void Initialize()
Initialize the Game system.
uint16 _tick_counter
Ever incrementing (and sometimes wrapping) tick counter for setting off various events.
void NetworkInitChatMessage()
Initialize all buffers of the chat visualisation.
void InitializeObjects()
Initialize/reset the objects.
uint32 TileIndex
The index/ID of a Tile.
Functions related to the economy.
TileIndex redsq
The tile that has to get a red selection.
void InitializeAnimatedTiles()
Initialize all animated tile variables to some known begin point.
static void Clear()
Clear all link graphs and jobs from the schedule.
Functions related to OTTD's landscape.
Base functions for all Games.
Network functions used by other parts of OpenTTD.
Base functions for all AIs.
static const TileIndex INVALID_TILE
The very nice invalid tile marker.
GameCreationSettings game_creation
settings used during the creation of a game (map)
void ResetObjectToPlace()
Reset the cursor and mouse mode handling back to default (normal cursor, only clicking in windows)...
Date ConvertYMDToDate(Year year, Month month, Day day)
Converts a tuple of Year, Month and Day to a Date.
Functions related to tile highlights.
Window functions not directly related to making/drawing windows.
Functions related to text effects.
void InitializeObjectGui()
Reset all data of the object GUI.
Functions related to news.
Year starting_year
starting date
Base for the NewGRF implementation.