summaryrefslogtreecommitdiff
path: root/src/subsidy_func.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-05-23 15:46:00 +0000
committersmatz <smatz@openttd.org>2009-05-23 15:46:00 +0000
commitb2aed51f8e42e0e45d08a65b8883b3fa034d0f4b (patch)
tree3b45fa52ccaffe68d01b5f234afc6b2c927b92bc /src/subsidy_func.h
parentf2317d0d9d74c3f5d14530c14b314ad32d05ef80 (diff)
downloadopenttd-b2aed51f8e42e0e45d08a65b8883b3fa034d0f4b.tar.xz
(svn r16403) -Codechange: move code related to subsidies to separate file
Diffstat (limited to 'src/subsidy_func.h')
-rw-r--r--src/subsidy_func.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/subsidy_func.h b/src/subsidy_func.h
new file mode 100644
index 000000000..608dadfed
--- /dev/null
+++ b/src/subsidy_func.h
@@ -0,0 +1,22 @@
+/* $Id$ */
+
+/** @file subsidy_func.h Functions related to subsidies. */
+
+#ifndef SUBSIDY_FUNC_H
+#define SUBSIDY_FUNC_H
+
+#include "core/geometry_type.hpp"
+#include "station_type.h"
+#include "town_type.h"
+#include "industry_type.h"
+#include "company_type.h"
+#include "subsidy_type.h"
+
+Pair SetupSubsidyDecodeParam(const Subsidy *s, bool mode);
+void DeleteSubsidyWithTown(TownID index);
+void DeleteSubsidyWithIndustry(IndustryID index);
+void DeleteSubsidyWithStation(StationID index);
+bool CheckSubsidised(Station *from, Station *to, CargoID cargo_type);
+void SubsidyMonthlyHandler();
+
+#endif /* SUBSIDY_FUNC_H */