equal
deleted
inserted
replaced
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 /** |