OpenTTD Source
1.11.0-beta2
|
Go to the documentation of this file.
31 #include "viewport_kdtree.h"
38 extern void MakeNewgameSettingsLive();
40 void InitializeSound();
42 void InitializeVehicles();
44 void InitializeRoadGui();
45 void InitializeAirportGui();
46 void InitializeDockGui();
47 void InitializeGraphGui();
49 void InitializeTownGui();
50 void InitializeIndustries();
52 void InitializeTrees();
58 void InitializeGame(uint size_x, uint size_y,
bool reset_date,
bool reset_settings)
69 _cur_tileloop_tile = 1;
71 if (reset_settings) MakeNewgameSettingsLive();
73 _newgrf_profilers.clear();
83 RebuildStationKdtree();
85 RebuildViewportKdtree();
95 InitializeLandscape();
98 InitializeAirportGui();
100 InitializeGraphGui();
105 InitializeIndustries();
107 InitializeBuildingCounts();
void InitializeCompanies()
Initialize the pool of companies.
static void Clear()
Clear all link graphs and jobs from the schedule.
uint32 TileIndex
The index/ID of a Tile.
void GamelogMode()
Logs a change in game mode (scenario editor or game)
void NetworkInitChatMessage()
Initialize all buffers of the chat visualisation.
void ResetPersistentNewGRFData()
Reset NewGRF data which is stored persistently in savegames.
void SetDate(Date date, DateFract fract)
Set the date.
void InitNewsItemStructs()
Initialize the news-items data structures.
void UnInitWindowSystem()
Close down the windowing system.
GameCreationSettings game_creation
settings used during the creation of a game (map)
@ PM_UNPAUSED
A normal unpaused game.
void InitializeOldNames()
Initialize the old names table memory.
void InitializeEconomy()
Resets economy to initial values.
Date ConvertYMDToDate(Year year, Month month, Day day)
Converts a tuple of Year, Month and Day to a Date.
PauseMode _pause_mode
The current pause mode.
static void Initialize()
Initialize the AI system.
GameSettings _settings_game
Game settings of a running game or the scenario editor.
void GamelogStartAction(GamelogActionType at)
Stores information about new action, but doesn't allocate it Action is allocated only when there is a...
uint16 _tick_counter
Ever incrementing (and sometimes wrapping) tick counter for setting off various events.
@ GLAT_START
Game created.
static void Clean(PoolType)
Clean all pools of given type.
void InitializeCheats()
Reinitialise all the cheats.
void GamelogStopAction()
Stops logging of any changes.
@ PT_NORMAL
Normal pool containing game objects.
void InitializeMusic()
Prepare the music system for use.
void InitializeAIGui()
Reset the AI windows to their initial state.
void GamelogGRFAddList(const GRFConfig *newg)
Logs adding of list of GRFs.
Year starting_year
starting date
void GamelogReset()
Resets and frees all memory allocated - used before loading or starting a new game.
GRFConfig * _grfconfig
First item in list of current GRF set up.
static const TileIndex INVALID_TILE
The very nice invalid tile marker.
void InitializeObjectGui()
Reset all data of the object GUI.
void InitializeObjects()
Initialize/reset the objects.
void InitializeRailGui()
Initialize rail building GUI settings.
void GamelogRevision()
Logs a change in game revision.
void AllocateMap(uint size_x, uint size_y)
(Re)allocates a map with the given dimension
void ResetObjectToPlace()
Reset the cursor and mouse mode handling back to default (normal cursor, only clicking in windows).
void InitializeAnimatedTiles()
Initialize all animated tile variables to some known begin point.
TileIndex redsq
The tile that has to get a red selection.
uint16 _game_speed
Current game-speed; 100 is 1x, 0 is infinite.
static void Initialize()
Initialize the Game system.