* Sets the selector to a certain tile on the map. * @param mx mouse x position. * @param my mouse y position. */
| 1176 | * @param my mouse y position. |
| 1177 | */ |
| 1178 | void Map::setSelectorPosition(int mx, int my) |
| 1179 | { |
| 1180 | int oldX = _selectorX, oldY = _selectorY; |
| 1181 | |
| 1182 | _camera->convertScreenToMap(mx, my + _spriteHeight/4, &_selectorX, &_selectorY); |
| 1183 | |
| 1184 | if (oldX != _selectorX || oldY != _selectorY) |
| 1185 | { |
| 1186 | _redraw = true; |
| 1187 | } |
| 1188 | } |
| 1189 | |
| 1190 | /** |
| 1191 | * Handles animating tiles. 8 Frames per animation. |
no test coverage detected