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

📄 scene.java

📁 《神州》RPG游戏引擎
💻 JAVA
字号:
import java.util.*;

/*
 * Created on 2005-7-13
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */

/**
 * @author Administrator
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class Scene {
    private String name;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    private String mapDataFile;
    private String mapImgFile;
    private int groundWidth;
    private int groundHeight;
    private int walkMinX;
    private int walkMinY;
    private int walkMaxX;
    private int walkMaxY;
    private int roleX;
    private int roleY;    
    private int roleDir;
    private int[] enemyIndex;  //该场景里的明雷敌人种类index
    private int[] mineEnemyIndex;  //该场景里的暗雷敌人种类index
    private int battleScene;  //该场景对应的战斗场景index
    private boolean haveMine;  //有无地雷
    private int mineTimerCounter;  //触发地雷计时器
    
    public boolean isHaveMine() {
        return haveMine;
    }
    public void setHaveMine(boolean haveMine) {
        this.haveMine = haveMine;
    }
    public int getBattleScene() {
        return battleScene;
    }
    public void setBattleScene(int battleScene) {
        this.battleScene = battleScene;
    }
    public int[] getMineEnemyIndex() {
        return mineEnemyIndex;
    }
    public void setMineEnemyIndex(int[] mineEnemyIndex) {
        this.mineEnemyIndex = mineEnemyIndex;
    }
    public int[] getEnemyIndex() {
        return enemyIndex;
    }
    public void setEnemyIndex(int[] enemyIndex) {
        this.enemyIndex = enemyIndex;
    }
    public int getRoleDir() {
        return roleDir;
    }
    public void setRoleDir(int roleDir) {
        this.roleDir = roleDir;
    }
    public int getRoleX() {
        return roleX;
    }
    public int getRoleY() {
        return roleY;
    }
    public void setRoleX(int roleX) {
        this.roleX = roleX;
    }
    public void setRoleY(int roleY) {
        this.roleY = roleY;
    }
    public void setRolePosition(int x,int y) {
        this.roleX = x;
        this.roleY = y;
    }
    private Vector outAreaVC;
    public void addOutArea(OutArea outArea)
    {
        if(outAreaVC==null)outAreaVC=new Vector();
        outAreaVC.addElement(outArea);
    }
    public Vector getOutArea()
    {
        return outAreaVC;
    }
  

    public int getGroundHeight() {
        return groundHeight;
    }
    public int getGroundWidth() {
        return groundWidth;
    }
    public void setGroundHeight(int groundHeight) {
        this.groundHeight = groundHeight;
    }
    public void setGroundWidth(int groundWidth) {
        this.groundWidth = groundWidth;
    }
    public String getMapDataFile() {
        return mapDataFile;
    }
    public String getMapImgFile() {
        return mapImgFile;
    }
    public void setMapDataFile(String mapDataFile) {
        this.mapDataFile = mapDataFile;
    }
    public void setMapImgFile(String mapImgFile) {
        this.mapImgFile = mapImgFile;
    }

  
    public int getWalkMaxX() {
        return walkMaxX;
    }
    public int getWalkMaxY() {
        return walkMaxY;
    }
    public int getWalkMinX() {
        return walkMinX;
    }
    public int getWalkMinY() {
        return walkMinY;
    }
    public void setWalkMaxX(int walkMaxX) {
        this.walkMaxX = walkMaxX;
    }
    public void setWalkMaxY(int walkMaxY) {
        this.walkMaxY = walkMaxY;
    }
    public void setWalkMinX(int walkMinX) {
        this.walkMinX = walkMinX;
    }
    public void setWalkMinY(int walkMinY) {
        this.walkMinY = walkMinY;
    }
    public int getMineTimerCounter() {
        return mineTimerCounter;
    }
    public void setMineTimerCounter(int mineTimerCounter) {
        this.mineTimerCounter = mineTimerCounter;
    }
}

⌨️ 快捷键说明

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