src/ai/api/ai_tilelist_valuator.hpp
branchnoai
changeset 9698 1d50fe99b7e9
parent 9678 c78400096127
child 9700 e442ce398e83
--- a/src/ai/api/ai_tilelist_valuator.hpp	Sun Aug 19 13:22:13 2007 +0000
+++ b/src/ai/api/ai_tilelist_valuator.hpp	Sun Aug 19 13:31:04 2007 +0000
@@ -24,6 +24,22 @@
 };
 
 /**
+ * Check if tiles are water-tiles for entries in an AITileList instance.
+ * @note resulting items are of the type bool (0 = not water-tile, 1 = water-tile)
+ * @note the input items are of the type TileIndex
+ */
+class AITileListWater : public AIAbstractList::Valuator {
+public:
+	/**
+	 * The name of the class, needed by several sub-processes.
+	 */
+	static const char *GetClassName() { return "AITileListWater"; }
+
+private:
+	int32 Valuate(int32 tile) const;
+};
+
+/**
  * Check if tiles are buildable in a rectangle around entries in an AITileList instance, with the entry in the list as top-left.
  * @note resulting items are of the type bool (0 = not buildable, 1 = buildable)
  * @note the input items are of the type TileIndex