Files
@ r16679:4aec077dd028
Branch filter:
Location: cpp/openttd-patchpack/source/src/order_func.h - annotation
r16679:4aec077dd028
1.8 KiB
text/x-c
(svn r21421) -Update from WebTranslator v3.0:
belarusian - 2 changes by KorneySan
catalan - 3 changes by arnau
croatian - 1 changes by VoyagerOne
dutch - 21 changes by habell
french - 1 changes by glx
irish - 2 changes by tem
korean - 1 changes by junho2813
polish - 2 changes by voythas
romanian - 7 changes by kneekoo
russian - 2 changes by KorneySan
serbian - 25 changes by etran
slovenian - 3 changes by ntadej
ukrainian - 2 changes by Fixer
vietnamese - 2 changes by myquartz, nglekhoi
belarusian - 2 changes by KorneySan
catalan - 3 changes by arnau
croatian - 1 changes by VoyagerOne
dutch - 21 changes by habell
french - 1 changes by glx
irish - 2 changes by tem
korean - 1 changes by junho2813
polish - 2 changes by voythas
romanian - 7 changes by kneekoo
russian - 2 changes by KorneySan
serbian - 25 changes by etran
slovenian - 3 changes by ntadej
ukrainian - 2 changes by Fixer
vietnamese - 2 changes by myquartz, nglekhoi
r8784:f3d6ba8eb078 r8784:f3d6ba8eb078 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r8784:f3d6ba8eb078 r8784:f3d6ba8eb078 r8784:f3d6ba8eb078 r8784:f3d6ba8eb078 r8784:f3d6ba8eb078 r8784:f3d6ba8eb078 r8784:f3d6ba8eb078 r12465:c1b760a56db7 r8784:f3d6ba8eb078 r8784:f3d6ba8eb078 r8784:f3d6ba8eb078 r10184:9c5fe3a1bdab r8784:f3d6ba8eb078 r8784:f3d6ba8eb078 r10546:a4ec290c1c46 r8827:6ee5217ef94b r9807:a5bd28dc9b6b r9807:a5bd28dc9b6b r8784:f3d6ba8eb078 r13789:2cb30bca1f02 r8929:95c778aa13b0 r8784:f3d6ba8eb078 r8784:f3d6ba8eb078 r8784:f3d6ba8eb078 r8784:f3d6ba8eb078 r8784:f3d6ba8eb078 r8784:f3d6ba8eb078 r12027:83216fa52f8f r12027:83216fa52f8f r12027:83216fa52f8f r12027:83216fa52f8f r12027:83216fa52f8f r8784:f3d6ba8eb078 r12027:83216fa52f8f r8784:f3d6ba8eb078 r8784:f3d6ba8eb078 | /* $Id$ */
/*
* 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/>.
*/
/** @file order_func.h Functions related to orders. */
#ifndef ORDER_FUNC_H
#define ORDER_FUNC_H
#include "order_type.h"
#include "vehicle_type.h"
#include "company_type.h"
/* Functions */
void RemoveOrderFromAllVehicles(OrderType type, DestinationID destination);
void InvalidateVehicleOrder(const Vehicle *v, int data);
bool VehicleHasDepotOrders(const Vehicle *v);
void CheckOrders(const Vehicle*);
void DeleteVehicleOrders(Vehicle *v, bool keep_orderlist = false);
bool ProcessOrders(Vehicle *v);
bool UpdateOrderDest(Vehicle *v, const Order *order, int conditional_depth = 0);
VehicleOrderID ProcessConditionalOrder(const Order *order, const Vehicle *v);
void DrawOrderString(const Vehicle *v, const Order *order, int order_index, int y, bool selected, bool timetable, int left, int middle, int right);
#define MIN_SERVINT_PERCENT 5
#define MAX_SERVINT_PERCENT 90
#define MIN_SERVINT_DAYS 30
#define MAX_SERVINT_DAYS 800
/**
* Clamp the service interval to the correct min/max. The actual min/max values
* depend on whether it's in percent or days.
* @param interval proposed service interval
* @param company_id the owner of the vehicle
* @return Clamped service interval
*/
uint16 GetServiceIntervalClamped(uint interval, CompanyID company_id);
#endif /* ORDER_FUNC_H */
|