Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package sonc.battle;
- public class ChangeSpeedCommand extends java.lang.Object implements ShipCommand{
- /**
- * @param ship
- * @param delta
- *Create a ChangeSpeedCommand from given data
- */
- public ChangeSpeedCommand(Ship ship, double delta) {
- super();
- // TODO Auto-generated constructor stub
- }
- public void execute() {
- this.ship=this.delta;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement