Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. package drawer;
  2.  
  3. import command.Command;
  4. import java.awt.Point;
  5.  
  6. public class DrawCommand implements Command {
  7.  
  8. protected Drawable drawable;
  9.  
  10. private Point position;
  11.  
  12. public DrawCommand(Drawable drawable, Point position) {
  13. this.drawable = drawable;
  14. this.position = position;
  15. }
  16.  
  17. public void execute() {
  18. drawable.draw(position.x, position.y);
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement