forked from mirror/OpenTTD
(svn r22013) -Codechange: move some functions out of functions.h
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
#ifndef COMPANY_FUNC_H
|
#ifndef COMPANY_FUNC_H
|
||||||
#define COMPANY_FUNC_H
|
#define COMPANY_FUNC_H
|
||||||
|
|
||||||
|
#include "command_type.h"
|
||||||
#include "company_type.h"
|
#include "company_type.h"
|
||||||
#include "tile_type.h"
|
#include "tile_type.h"
|
||||||
#include "gfx_type.h"
|
#include "gfx_type.h"
|
||||||
@@ -25,6 +26,12 @@ void CompanyAdminUpdate(const Company *company);
|
|||||||
void CompanyAdminBankrupt(CompanyID company_id);
|
void CompanyAdminBankrupt(CompanyID company_id);
|
||||||
void UpdateLandscapingLimits();
|
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 _local_company;
|
||||||
extern CompanyByte _current_company;
|
extern CompanyByte _current_company;
|
||||||
|
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "command_func.h"
|
#include "command_func.h"
|
||||||
#include "depot_base.h"
|
#include "depot_base.h"
|
||||||
#include "functions.h"
|
#include "company_func.h"
|
||||||
#include "string_func.h"
|
#include "string_func.h"
|
||||||
#include "town.h"
|
#include "town.h"
|
||||||
#include "vehicle_gui.h"
|
#include "vehicle_gui.h"
|
||||||
|
@@ -20,13 +20,6 @@ void DrawClearLandTile(const TileInfo *ti, byte set);
|
|||||||
void DrawClearLandFence(const TileInfo *ti);
|
void DrawClearLandFence(const TileInfo *ti);
|
||||||
void TileLoopClearHelper(TileIndex tile);
|
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 */
|
/* misc functions */
|
||||||
void MarkTileDirtyByTile(TileIndex tile);
|
void MarkTileDirtyByTile(TileIndex tile);
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "command_func.h"
|
#include "command_func.h"
|
||||||
#include "functions.h"
|
#include "company_func.h"
|
||||||
#include "date_func.h"
|
#include "date_func.h"
|
||||||
#include "window_func.h"
|
#include "window_func.h"
|
||||||
#include "vehicle_base.h"
|
#include "vehicle_base.h"
|
||||||
|
Reference in New Issue
Block a user