Dropoff.java
1 package hlt; 2 3 public class Dropoff extends Entity { 4 public Dropoff(final PlayerId owner, final EntityId id, final Position position) { 5 super(owner, id, position); 6 } 7 8 static Dropoff _generate(final PlayerId playerId) { 9 final Input input = Input.readInput(); 10 11 final EntityId dropoffId = new EntityId(input.getInt()); 12 final int x = input.getInt(); 13 final int y = input.getInt(); 14 15 return new Dropoff(playerId, dropoffId, new Position(x, y)); 16 } 17 }