| 47 | |
| 48 | |
| 49 | uint Identify::ObjectAtPoint(coord x, coord y) |
| 50 | // ---------------------------------------------------------------------------- |
| 51 | // Find the object under the cursor at the given coordinates |
| 52 | // ---------------------------------------------------------------------------- |
| 53 | { |
| 54 | Box rectangle(x, y, 2, 2); |
| 55 | return ObjectInRectangle(rectangle); |
| 56 | } |
| 57 | |
| 58 | |
| 59 | uint Identify::ObjectInRectangle(const Box &rectangle, |