summaryrefslogtreecommitdiff
path: root/src/company_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-02-07 22:08:11 +0000
committerrubidium <rubidium@openttd.org>2011-02-07 22:08:11 +0000
commit750d369a2abd951edcc376f5fc7926de4bb4d5a3 (patch)
tree5f0ae8c176bcc98307d36280f3206e19987f880f /src/company_func.h
parent68d03b66e3a85e714bbcce3f3a53b55cfb597ab4 (diff)
downloadopenttd-750d369a2abd951edcc376f5fc7926de4bb4d5a3.tar.xz
(svn r22013) -Codechange: move some functions out of functions.h
Diffstat (limited to 'src/company_func.h')
-rw-r--r--src/company_func.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/company_func.h b/src/company_func.h
index d86acbbf3..d612f2873 100644
--- a/src/company_func.h
+++ b/src/company_func.h
@@ -12,6 +12,7 @@
#ifndef COMPANY_FUNC_H
#define COMPANY_FUNC_H
+#include "command_type.h"
#include "company_type.h"
#include "tile_type.h"
#include "gfx_type.h"
@@ -25,6 +26,12 @@ 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;