summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_cargo.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai/api/ai_cargo.hpp')
-rw-r--r--src/ai/api/ai_cargo.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ai/api/ai_cargo.hpp b/src/ai/api/ai_cargo.hpp
index ed658c0a4..0d6a86451 100644
--- a/src/ai/api/ai_cargo.hpp
+++ b/src/ai/api/ai_cargo.hpp
@@ -63,6 +63,13 @@ public:
static bool IsValidCargo(CargoID cargo_type);
/**
+ * Checks whether the given town effect type is valid.
+ * @param towneffect_type The town effect to check.
+ * @return True if and only if the town effect type is valid.
+ */
+ static bool IsValidTownEffect(TownEffect towneffect_type);
+
+ /**
* Gets the string representation of the cargo label.
* @param cargo_type The cargo to get the string representation of.
* @pre AICargo::IsValidCargo(cargo_type).