Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (final Ship ship : gameMap.getMyPlayer().getShips().values()) {
- if (ship.getDockingStatus() != Ship.DockingStatus.Undocked) {
- continue;
- }
- Entity entity = (Entity)ship;
- for (final Entity p : gameMap.nearbyEntitiesByDistance(entity).values()) {
- Planet planet = (Planet)p;
- if (planet.isOwned()) {
- continue;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement