2005-07-24 16:12:37 +02:00
|
|
|
/* $Id$ */
|
|
|
|
|
2009-08-21 22:21:05 +02: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/>.
|
|
|
|
*/
|
|
|
|
|
2008-05-06 17:11:33 +02:00
|
|
|
/** @file engine_func.h Functions related to engines. */
|
2007-02-23 19:55:07 +01:00
|
|
|
|
2010-12-22 12:46:41 +01:00
|
|
|
#ifndef ENGINE_FUNC_H
|
|
|
|
#define ENGINE_FUNC_H
|
2004-08-09 19:04:08 +02:00
|
|
|
|
2008-03-28 19:00:38 +01:00
|
|
|
#include "engine_type.h"
|
2010-01-15 17:41:15 +01:00
|
|
|
#include "vehicle_type.h"
|
|
|
|
#include "company_type.h"
|
2006-01-12 16:52:18 +01:00
|
|
|
|
2008-01-08 19:25:51 +01:00
|
|
|
void SetupEngines();
|
2007-03-07 12:47:46 +01:00
|
|
|
void StartupEngines();
|
2004-08-09 19:04:08 +02:00
|
|
|
|
2008-04-29 23:31:29 +02:00
|
|
|
/* Original engine data counts and offsets */
|
|
|
|
extern const uint8 _engine_counts[4];
|
|
|
|
extern const uint8 _engine_offsets[4];
|
2004-08-09 19:04:08 +02:00
|
|
|
|
2008-09-30 22:39:50 +02:00
|
|
|
bool IsEngineBuildable(EngineID engine, VehicleType type, CompanyID company);
|
2008-12-16 23:02:12 +01:00
|
|
|
bool IsEngineRefittable(EngineID engine);
|
2009-01-08 22:48:59 +01:00
|
|
|
void SetYearEngineAgingStops();
|
2009-01-23 03:35:17 +01:00
|
|
|
void StartupOneEngine(Engine *e, Date aging_date);
|
2004-08-09 19:04:08 +02:00
|
|
|
|
2009-10-06 21:52:38 +02:00
|
|
|
uint GetTotalCapacityOfArticulatedParts(EngineID engine);
|
2009-03-10 22:17:00 +01:00
|
|
|
|
2010-12-22 12:46:41 +01:00
|
|
|
#endif /* ENGINE_FUNC_H */
|