summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_cargo.hpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2011-11-05 15:31:21 +0000
committermichi_cc <michi_cc@openttd.org>2011-11-05 15:31:21 +0000
commita22b4f1f9154a508aef79cd6d8cc21d5c84eb559 (patch)
treeef3b508833f20176662b033ec94120a0ada9aa12 /src/ai/api/ai_cargo.hpp
parent6a2735d24ed54158b93eac217e803dcd89f67a9e (diff)
downloadopenttd-a22b4f1f9154a508aef79cd6d8cc21d5c84eb559.tar.xz
(svn r23120) -Feature: [NoAI] Support for refit orders.
Diffstat (limited to 'src/ai/api/ai_cargo.hpp')
-rw-r--r--src/ai/api/ai_cargo.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ai/api/ai_cargo.hpp b/src/ai/api/ai_cargo.hpp
index 4d7ad777b..4cc3a1a1c 100644
--- a/src/ai/api/ai_cargo.hpp
+++ b/src/ai/api/ai_cargo.hpp
@@ -51,6 +51,14 @@ public:
};
/**
+ * Special cargo types.
+ */
+ enum SpecialCargoID {
+ CT_AUTO_REFIT = 0xFD, ///< Automatically choose cargo type when doing auto-refitting.
+ CT_NO_REFIT = 0xFE, ///< Do not refit cargo of a vehicle.
+ };
+
+ /**
* Checks whether the given cargo type is valid.
* @param cargo_type The cargo to check.
* @return True if and only if the cargo type is valid.