diff options
author | michi_cc <michi_cc@openttd.org> | 2011-11-05 15:31:21 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2011-11-05 15:31:21 +0000 |
commit | a22b4f1f9154a508aef79cd6d8cc21d5c84eb559 (patch) | |
tree | ef3b508833f20176662b033ec94120a0ada9aa12 /src/ai/api/ai_cargo.hpp | |
parent | 6a2735d24ed54158b93eac217e803dcd89f67a9e (diff) | |
download | openttd-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.hpp | 8 |
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. |