Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package drawer;
- import command.Command;
- import java.awt.Point;
- public class DrawCommand implements Command {
- protected Drawable drawable;
- private Point position;
- public DrawCommand(Drawable drawable, Point position) {
- this.drawable = drawable;
- this.position = position;
- }
- public void execute() {
- drawable.draw(position.x, position.y);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement