⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 commandwithposition.java

📁 一个基于J2ME的SCRIPT引擎框架
💻 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 + -