src/ai/api/ai_tilelist_valuator.hpp
branchnoai
changeset 9658 e7675771bca4
parent 9657 f2c6e332d8bc
child 9669 366771e15a2c
equal deleted inserted replaced
9657:f2c6e332d8bc 9658:e7675771bca4
   108 	static const char *GetClassName() { return "AITileListCargoAcceptance"; }
   108 	static const char *GetClassName() { return "AITileListCargoAcceptance"; }
   109 
   109 
   110 	/**
   110 	/**
   111 	 * Custom constructor, we want a cargo-type as parameter.
   111 	 * Custom constructor, we want a cargo-type as parameter.
   112 	 */
   112 	 */
   113 	AITileListCargoAcceptance(CargoID cargo_type) { this->cargo_type = cargo_type; }
   113 	AITileListCargoAcceptance(CargoID cargo_type, uint width, uint height, uint radius) { this->cargo_type = cargo_type; this->width = width; this->height = height; this->radius = radius; }
   114 
   114 
   115 private:
   115 private:
   116 	CargoID cargo_type;
   116 	CargoID cargo_type;
       
   117 	uint width, height, radius;
   117 
   118 
   118 	int32 Valuate(int32 tile) const;
   119 	int32 Valuate(int32 tile) const;
   119 };
   120 };
   120 
   121 
   121 /**
   122 /**