* Relocates all dogfight window elements to * calculated position. This is used when multiple * interceptions are running. */
| 1772 | * interceptions are running. |
| 1773 | */ |
| 1774 | void DogfightState::moveWindow() |
| 1775 | { |
| 1776 | _window->setX(_x); _window->setY(_y); |
| 1777 | _battle->setX(_x + 3); _battle->setY(_y + 3); |
| 1778 | _weapon1->setX(_x + 4); _weapon1->setY(_y + 52); |
| 1779 | _range1->setX(_x + 19); _range1->setY(_y + 3); |
| 1780 | _weapon2->setX(_x + 64); _weapon2->setY(_y + 52); |
| 1781 | _range2->setX(_x + 43); _range2->setY(_y + 3); |
| 1782 | _damage->setX(_x + 93); _damage->setY(_y + 40); |
| 1783 | _btnMinimize->setX(_x); _btnMinimize->setY(_y); |
| 1784 | _preview->setX(_x); _preview->setY(_y); |
| 1785 | _btnStandoff->setX(_x + 83); _btnStandoff->setY(_y + 4); |
| 1786 | _btnCautious->setX(_x + 120); _btnCautious->setY(_y + 4); |
| 1787 | _btnStandard->setX(_x + 83); _btnStandard->setY(_y + 20); |
| 1788 | _btnAggressive->setX(_x + 120); _btnAggressive->setY(_y + 20); |
| 1789 | _btnDisengage->setX(_x + 120); _btnDisengage->setY(_y + 36); |
| 1790 | _btnUfo->setX(_x + 120); _btnUfo->setY(_y + 52); |
| 1791 | _txtAmmo1->setX(_x + 4); _txtAmmo1->setY(_y + 70); |
| 1792 | _txtAmmo2->setX(_x + 64); _txtAmmo2->setY(_y + 70); |
| 1793 | _txtDistance->setX(_x + 116); _txtDistance->setY(_y + 72); |
| 1794 | _txtStatus->setX(_x + 4); _txtStatus->setY(_y + 85); |
| 1795 | _btnMinimizedIcon->setX(_minimizedIconX); _btnMinimizedIcon->setY(_minimizedIconY); |
| 1796 | _txtInterceptionNumber->setX(_minimizedIconX + 18); _txtInterceptionNumber->setY(_minimizedIconY + 6); |
| 1797 | } |
| 1798 | |
| 1799 | /** |
| 1800 | * Checks whether the dogfight should end. |