/** * Pick a target for the selected craft. * @param action Pointer to an action. */ void InterceptState::lstCraftsLeftClick(Action *) { Craft* c = _crafts[_lstCrafts->getSelectedRow()]; if (c->getStatus() == "STR_READY" || ((c->getStatus() == "STR_OUT" || Options::craftLaunchAlways) && !c->getLowFuel() && !c->getMissionComplete())) { _game->popState(); if (_target == 0) { _game->pushState(new SelectDestinationState(c, _globe)); } else { _game->pushState(new ConfirmDestinationState(c, _target)); } } }