src/ai/api/ai_tilelist_valuator.hpp
branchnoai
changeset 9700 e442ce398e83
parent 9698 1d50fe99b7e9
child 9753 7209db94ad12
equal deleted inserted replaced
9699:e1b5f29cc6f9 9700:e442ce398e83
    71 public:
    71 public:
    72 	/**
    72 	/**
    73 	 * The name of the class, needed by several sub-processes.
    73 	 * The name of the class, needed by several sub-processes.
    74 	 */
    74 	 */
    75 	static const char *GetClassName() { return "AITileListSlope"; }
    75 	static const char *GetClassName() { return "AITileListSlope"; }
       
    76 
       
    77 private:
       
    78 	int32 Valuate(int32 tile) const;
       
    79 };
       
    80 
       
    81 /**
       
    82  * Check the height of the tiles in an AITileList instance.
       
    83  * @note resulting items are of the type int32 (height, ranging from 0 to 15)
       
    84  * @note the input items are of the type TileIndex
       
    85  */
       
    86 class AITileListHeight : public AIAbstractList::Valuator {
       
    87 public:
       
    88 	/**
       
    89 	 * The name of the class, needed by several sub-processes.
       
    90 	 */
       
    91 	static const char *GetClassName() { return "AITileListHeight"; }
    76 
    92 
    77 private:
    93 private:
    78 	int32 Valuate(int32 tile) const;
    94 	int32 Valuate(int32 tile) const;
    79 };
    95 };
    80 
    96