src/ai/api/ai_tilelist_valuator.hpp
branchnoai
changeset 9611 5cf58c6571b7
parent 9609 f0dbf5850145
child 9617 df9cedf12aab
equal deleted inserted replaced
9610:5cebcd43a1ec 9611:5cf58c6571b7
    16 public:
    16 public:
    17 	/**
    17 	/**
    18 	 * The name of the class, needed by several sub-processes.
    18 	 * The name of the class, needed by several sub-processes.
    19 	 */
    19 	 */
    20 	static const char *GetClassName() { return "AITileListBuildable"; }
    20 	static const char *GetClassName() { return "AITileListBuildable"; }
       
    21 
       
    22 private:
       
    23 	int32 Valuate(int32 tile) const;
       
    24 };
       
    25 
       
    26 /**
       
    27  * Check how tiles in an AITileList instance are sloped.
       
    28  * @note resulting items are of the type int32 (0 = flat, > 1 = slope)
       
    29  * @note the input items are of the type TileIndex
       
    30  */
       
    31 class AITileListSlope : public AIAbstractList::Valuator {
       
    32 public:
       
    33 	/**
       
    34 	 * The name of the class, needed by several sub-processes.
       
    35 	 */
       
    36 	static const char *GetClassName() { return "AITileListSlope"; }
    21 
    37 
    22 private:
    38 private:
    23 	int32 Valuate(int32 tile) const;
    39 	int32 Valuate(int32 tile) const;
    24 };
    40 };
    25 
    41