Add SpawnWidget

This commit is contained in:
code-witch 2019-07-20 20:00:58 -06:00
parent aed790b857
commit 5401288779

View File

@ -0,0 +1,44 @@
package fetch.commands;
import fetch.widgets.Widget;
import javafx.scene.Node;
public class SpawnWidget<T extends Node> extends Command {
private int x, y;
private Widget<T> widget;
public SpawnWidget(int x, int y, Widget<T> 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<T> getWidget() {
return widget;
}
public void setWidget(Widget<T> widget) {
this.widget = widget;
}
}