src/vehicle_type.h
branchNewGRF_ports
changeset 10200 aba3af04cdbd
parent 6878 7d1ff2f621c7
child 10274 b3c58f3df92b
--- a/src/vehicle_type.h	Tue Apr 15 19:47:58 2008 +0000
+++ b/src/vehicle_type.h	Wed Apr 16 00:07:47 2008 +0000
@@ -60,4 +60,14 @@
 	VPF_YAPF = 2, ///< Yet Another PathFinder
 };
 
+/* Flags to add to p2 for goto depot commands */
+/* Note: bits 8-10 are used for VLW flags */
+enum DepotCommand {
+	DEPOT_SERVICE       = (1 << 0), ///< The vehicle will leave the depot right after arrival (serivce only)
+	DEPOT_MASS_SEND     = (1 << 1), ///< Tells that it's a mass send to depot command (type in VLW flag)
+	DEPOT_DONT_CANCEL   = (1 << 2), ///< Don't cancel current goto depot command if any
+	DEPOT_LOCATE_HANGAR = (1 << 3), ///< Find another airport if the target one lacks a hangar
+	DEPOT_COMMAND_MASK  = 0xF,
+};
+
 #endif /* VEHICLE_TYPE_H */