📄 commandwithposition.java
字号:
package sjg.scripting;import sjg.*;import java.util.*;/** * Class representing an user command with name and x, y position. (Usually for introducing sprites into the game). * * @author Christian Hvid */public class CommandWithPosition extends UserCommand { private int x; private int y; public void move(ScriptEngine engine, Stack stack, Callback callback) { callback.command(getName(), x, y); } public CommandWithPosition(String name, int x, int y) { super(name); this.x = x; this.y = y; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -