(svn r16403) -Codechange: move code related to subsidies to separate file

This commit is contained in:
smatz
2009-05-23 15:46:00 +00:00
parent 846382a0f3
commit 1eb48cdded
18 changed files with 435 additions and 354 deletions

22
src/subsidy_func.h Normal file
View File

@@ -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 */