* Draws the rectangle selector. * @param pos Pointer to a position. */
| 1222 | * @param pos Pointer to a position. |
| 1223 | */ |
| 1224 | void Map::getSelectorPosition(Position *pos) const |
| 1225 | { |
| 1226 | pos->x = _selectorX; |
| 1227 | pos->y = _selectorY; |
| 1228 | pos->z = _camera->getViewLevel(); |
| 1229 | } |
| 1230 | |
| 1231 | /** |
| 1232 | * Calculates the offset of a soldier, when it is walking in the middle of 2 tiles. |