Esempio n. 1
0
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);
}
Esempio n. 2
0
void Details :: planetSelected(int index)
 {
  if (index <= 0) return;
  A::PlanetId planetNum = planetSelector->itemData(index).toInt();
  setCurrentPlanet(planetNum, fileIndex);
 }