Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. package sonc.battle;
  2.  
  3.  
  4. public class ChangeSpeedCommand extends java.lang.Object implements ShipCommand{
  5.  
  6. /**
  7. * @param ship
  8. * @param delta
  9. *Create a ChangeSpeedCommand from given data
  10. */
  11. public ChangeSpeedCommand(Ship ship, double delta) {
  12. super();
  13. // TODO Auto-generated constructor stub
  14. }
  15.  
  16. public void execute() {
  17. this.ship=this.delta;
  18. }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement