--------------------------------------------- GET UNITS IN RECTANGLE -------------------------------------
| 270 | } |
| 271 | //--------------------------------------------- GET UNITS IN RECTANGLE ------------------------------------- |
| 272 | Unit GameImpl::_unitFromIndex(int index) |
| 273 | { |
| 274 | return this->unitArray[index-1]; |
| 275 | } |
| 276 | Unitset GameImpl::getUnitsInRectangle(int left, int top, int right, int bottom, const UnitFilter &pred) const |
| 277 | { |
| 278 | Unitset unitFinderResults; |