2009-05-23 15:46:00 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2009-08-21 20:21:05 +00:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
|
|
|
|
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2009-05-23 15:46:00 +00:00
|
|
|
/** @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 "company_type.h"
|
2010-01-15 16:41:15 +00:00
|
|
|
#include "cargo_type.h"
|
2009-05-23 15:46:00 +00:00
|
|
|
|
2009-07-01 18:45:05 +00:00
|
|
|
Pair SetupSubsidyDecodeParam(const struct Subsidy *s, bool mode);
|
2009-08-07 22:23:34 +00:00
|
|
|
void DeleteSubsidyWith(SourceType type, SourceID index);
|
2009-08-08 16:42:55 +00:00
|
|
|
bool CheckSubsidised(CargoID cargo_type, CompanyID company, SourceType src_type, SourceID src, const Station *st);
|
2009-05-23 15:46:00 +00:00
|
|
|
void SubsidyMonthlyHandler();
|
2009-08-08 16:42:55 +00:00
|
|
|
void RebuildSubsidisedSourceAndDestinationCache();
|
|
|
|
void DeleteSubsidy(struct Subsidy *s);
|
2009-05-23 15:46:00 +00:00
|
|
|
|
|
|
|
#endif /* SUBSIDY_FUNC_H */
|