/** * Ship has reached it's destination, select a new one. * @param event ship arrives at destination */ @Subscribe public void handleShipReachesDestination(ShipArrivesAtDestinationEvent event) { INavigableVessel vessel = event.getShip(); if (handlePirateShip(vessel)) { int damageInv = vessel.getDamage(); if (damageInv < 20) { selectDestination((ISeaPirate) vessel.getOwner()); } else { sendForRepairs(vessel); } } } /** * Select a new destination for the pirate.