Add SpawnWidget
This commit is contained in:
parent
aed790b857
commit
5401288779
44
src/fetch/commands/SpawnWidget.java
Normal file
44
src/fetch/commands/SpawnWidget.java
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user