OpenTTD
misc.cpp File Reference

Misc functions that shouldn't be here. More...

#include "stdafx.h"
#include "landscape.h"
#include "news_func.h"
#include "ai/ai.hpp"
#include "ai/ai_gui.hpp"
#include "newgrf.h"
#include "newgrf_house.h"
#include "economy_func.h"
#include "date_func.h"
#include "texteff.hpp"
#include "gfx_func.h"
#include "gamelog.h"
#include "animated_tile_func.h"
#include "tilehighlight_func.h"
#include "network/network_func.h"
#include "window_func.h"
#include "core/pool_type.hpp"
#include "game/game.hpp"
#include "linkgraph/linkgraphschedule.h"
#include "station_kdtree.h"
#include "town_kdtree.h"
#include "viewport_kdtree.h"
#include "safeguards.h"

Go to the source code of this file.

Functions

void MakeNewgameSettingsLive ()
 
void InitializeSound ()
 
void InitializeMusic ()
 Prepare the music system for use. More...
 
void InitializeVehicles ()
 
void InitializeRailGui ()
 Initialize rail building GUI settings.
 
void InitializeRoadGui ()
 
void InitializeAirportGui ()
 
void InitializeDockGui ()
 
void InitializeGraphGui ()
 
void InitializeObjectGui ()
 Reset all data of the object GUI. More...
 
void InitializeTownGui ()
 
void InitializeIndustries ()
 
void InitializeObjects ()
 Initialize/reset the objects. More...
 
void InitializeTrees ()
 
void InitializeCompanies ()
 Initialize the pool of companies. More...
 
void InitializeCheats ()
 Reinitialise all the cheats. More...
 
void InitializeNPF ()
 
void InitializeOldNames ()
 Initialize the old names table memory.
 
void InitializeGame (uint size_x, uint size_y, bool reset_date, bool reset_settings)
 

Variables

TileIndex _cur_tileloop_tile
 

Detailed Description

Misc functions that shouldn't be here.

Definition in file misc.cpp.

Function Documentation

◆ InitializeCheats()

void InitializeCheats ( )

Reinitialise all the cheats.

Definition at line 19 of file cheat.cpp.

◆ InitializeCompanies()

void InitializeCompanies ( )

Initialize the pool of companies.

Definition at line 612 of file company_cmd.cpp.

References _cur_company_tick_index.

◆ InitializeMusic()

void InitializeMusic ( )

Prepare the music system for use.

Called from InitializeGame

Definition at line 444 of file music_gui.cpp.

References MusicSystem::BuildPlaylists().

◆ InitializeObjectGui()

void InitializeObjectGui ( )

Reset all data of the object GUI.

Definition at line 531 of file object_gui.cpp.

References _selected_object_class.

◆ InitializeObjects()

void InitializeObjects ( )

Initialize/reset the objects.

Definition at line 68 of file object_cmd.cpp.

References Object::ResetTypeCounts().