* Zooms the globe smoothly into dogfight level. * @return Is the globe already zoomed in? */
| 743 | * @return Is the globe already zoomed in? |
| 744 | */ |
| 745 | bool Globe::zoomDogfightIn() |
| 746 | { |
| 747 | if (_zoom < DOGFIGHT_ZOOM) |
| 748 | { |
| 749 | double radiusNow = _radius; |
| 750 | if (radiusNow + _radiusStep >= _zoomRadius[DOGFIGHT_ZOOM]) |
| 751 | { |
| 752 | setZoom(DOGFIGHT_ZOOM); |
| 753 | } |
| 754 | else |
| 755 | { |
| 756 | if (radiusNow + _radiusStep >= _zoomRadius[_zoom + 1]) |
| 757 | _zoom++; |
| 758 | setZoom(_zoom); |
| 759 | _radius = radiusNow + _radiusStep; |
| 760 | } |
| 761 | return false; |
| 762 | } |
| 763 | return true; |
| 764 | } |
| 765 | |
| 766 | /** |
| 767 | * Zooms the globe smoothly out of dogfight level. |