Changeset - r17263:a75c87f7e037
[Not reviewed]
master
0 4 0
rubidium - 14 years ago 2011-02-07 22:08:11
rubidium@openttd.org
(svn r22013) -Codechange: move some functions out of functions.h
4 files changed with 9 insertions and 9 deletions:
0 comments (0 inline, 0 general)
src/company_func.h
Show inline comments
 
@@ -9,12 +9,13 @@
 

	
 
/** @file company_func.h Functions related to companies. */
 

	
 
#ifndef COMPANY_FUNC_H
 
#define COMPANY_FUNC_H
 

	
 
#include "command_type.h"
 
#include "company_type.h"
 
#include "tile_type.h"
 
#include "gfx_type.h"
 

	
 
bool MayCompanyTakeOver(CompanyID cbig, CompanyID small);
 
void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner);
 
@@ -22,12 +23,18 @@ void GetNameOfOwner(Owner owner, TileInd
 
void SetLocalCompany(CompanyID new_company);
 
void ShowBuyCompanyDialog(CompanyID company);
 
void CompanyAdminUpdate(const Company *company);
 
void CompanyAdminBankrupt(CompanyID company_id);
 
void UpdateLandscapingLimits();
 

	
 
bool CheckCompanyHasMoney(CommandCost &cost);
 
void SubtractMoneyFromCompany(CommandCost cost);
 
void SubtractMoneyFromCompanyFract(CompanyID company, CommandCost cost);
 
CommandCost CheckOwnership(Owner owner, TileIndex tile = 0);
 
CommandCost CheckTileOwnership(TileIndex tile);
 

	
 
extern CompanyByte _local_company;
 
extern CompanyByte _current_company;
 

	
 
extern Colours _company_colours[MAX_COMPANIES];
 
extern CompanyManagerFace _company_manager_face;
 

	
src/depot_cmd.cpp
Show inline comments
 
@@ -9,13 +9,13 @@
 

	
 
/** @file depot_cmd.cpp Command Handling for depots. */
 

	
 
#include "stdafx.h"
 
#include "command_func.h"
 
#include "depot_base.h"
 
#include "functions.h"
 
#include "company_func.h"
 
#include "string_func.h"
 
#include "town.h"
 
#include "vehicle_gui.h"
 
#include "vehiclelist.h"
 
#include "window_func.h"
 

	
src/functions.h
Show inline comments
 
@@ -17,19 +17,12 @@
 
/* clear_land.cpp */
 
void DrawHillyLandTile(const TileInfo *ti);
 
void DrawClearLandTile(const TileInfo *ti, byte set);
 
void DrawClearLandFence(const TileInfo *ti);
 
void TileLoopClearHelper(TileIndex tile);
 

	
 
/* company_cmd.cpp */
 
bool CheckCompanyHasMoney(CommandCost &cost);
 
void SubtractMoneyFromCompany(CommandCost cost);
 
void SubtractMoneyFromCompanyFract(CompanyID company, CommandCost cost);
 
CommandCost CheckOwnership(Owner owner, TileIndex tile = 0);
 
CommandCost CheckTileOwnership(TileIndex tile);
 

	
 
/* misc functions */
 
void MarkTileDirtyByTile(TileIndex tile);
 

	
 
void ShowCostOrIncomeAnimation(int x, int y, int z, Money cost);
 
void ShowFeederIncomeAnimation(int x, int y, int z, Money cost);
 

	
src/timetable_cmd.cpp
Show inline comments
 
@@ -8,13 +8,13 @@
 
 */
 

	
 
/** @file timetable_cmd.cpp Commands related to time tabling. */
 

	
 
#include "stdafx.h"
 
#include "command_func.h"
 
#include "functions.h"
 
#include "company_func.h"
 
#include "date_func.h"
 
#include "window_func.h"
 
#include "vehicle_base.h"
 

	
 
#include "table/strings.h"
 

	
0 comments (0 inline, 0 general)