From 54012887791806ebb158a170361f90f60176d897 Mon Sep 17 00:00:00 2001 From: code-witch Date: Sat, 20 Jul 2019 20:00:58 -0600 Subject: [PATCH] Add SpawnWidget --- src/fetch/commands/SpawnWidget.java | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/fetch/commands/SpawnWidget.java diff --git a/src/fetch/commands/SpawnWidget.java b/src/fetch/commands/SpawnWidget.java new file mode 100644 index 0000000..9e2938d --- /dev/null +++ b/src/fetch/commands/SpawnWidget.java @@ -0,0 +1,44 @@ +package fetch.commands; + +import fetch.widgets.Widget; +import javafx.scene.Node; + +public class SpawnWidget extends Command { + private int x, y; + private Widget widget; + + public SpawnWidget(int x, int y, Widget widget) { + setX(x); + setY(y); + setWidget(widget); + } + + @Override + public void run() { + + } + + public int getX() { + return x; + } + + public void setX(int x) { + this.x = x; + } + + public int getY() { + return y; + } + + public void setY(int y) { + this.y = y; + } + + public Widget getWidget() { + return widget; + } + + public void setWidget(Widget widget) { + this.widget = widget; + } +} \ No newline at end of file