void Ship::landOn(Planet *p) { setCurrentPlanet(p); getCurrentPlanet()->getLandingLocation()->setPath(getCurrentPlanet()->getShipDirection(), this, getCurrentPlanet()->getShipPathD()); string path = "the door that leads out onto " + getCurrentPlanet()->getName(); setPath(Direction::B, getCurrentPlanet()->getLandingLocation(), path); }
void Details :: planetSelected(int index) { if (index <= 0) return; A::PlanetId planetNum = planetSelector->itemData(index).toInt(); setCurrentPlanet(planetNum, fileIndex); }