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

📄 control.java

📁 脚本开发工具和源代码,用于J2me中RPG游戏的脚本开发和执行,相当好用的一套工具,并含有脚本开发工具的源代码和一个现成的游戏脚本
💻 JAVA
字号:
package scriptedit;import java.util.*;import scriptedit.data.*;/** * <p>Title: Control</p> * <p>Description: 2006年3月31日</p> * <p>Copyright: CoCoMo Copyright (c) 2006</p> * <p>Company: 9you</p> * @author 郭昉 * @version 1.1 */public class Control {  public static final int STATUS_NORMAL = 0;  public static final int STATUS_IF_EXP = 1;  public static final int STATUS_IF_STM = 2;  public static final int STATUS_WHILE_EXP = 3;  public static final int STATUS_WHILE_STM = 4;  private static Stack jcStack = new Stack(); //跳转指令栈  private static int pc = 0;                  //程序计数器  private static int status = STATUS_NORMAL;  public Control() {  }  public static void pushJC(Instruction ins) {    jcStack.push(ins);  }  public static Instruction popJC() {    return (Instruction) jcStack.pop();  }  public static Instruction peekJC() {    return (Instruction) jcStack.peek();  }  public static int getJCSize() {    return jcStack.size();  }  public static void setInsStatus(int s) {    status = s;  }  public static int getInsStatus() {    return status;  }  public static void nextPC() {    pc++;  }  public static void setPC(int n) {    pc = n;  }  public static int getPC() {    return pc;  }  public static void printPC() {    System.out.println("Instruction count:" + pc);  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -