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

📄 wall.java

📁 一个用JAVA语言编写的迷宫程序,可以实现迷宫的行走
💻 JAVA
字号:
/**
 * 
 */
package org.freemind.maze2d;

/**
 * @author Jerric
 * @created Feb 9, 2006
 */
public class Wall {

    private RoomNode roomA;
    private RoomNode roomB;
    private boolean isEastWest;

    /**
     * If the isEastWest is true, the roomA is on the west, and roomB on the
     * east; if it's false, the roomA is on the north, and roomB on the south.
     * 
     * @param roomA
     * @param roomB
     * @param isEastWest
     */
    public Wall(RoomNode roomA, RoomNode roomB, boolean isEastWest) {
        this.roomA = roomA;
        this.roomB = roomB;
        this.isEastWest = isEastWest;
    }

    /**
     * @return Returns the isEastWest.
     */
    public boolean isEastWest() {
        return this.isEastWest;
    }

    /**
     * @return Returns the roomA.
     */
    public RoomNode getRoomA() {
        return this.roomA;
    }

    /**
     * @return Returns the roomB.
     */
    public RoomNode getRoomB() {
        return this.roomB;
    }
}

⌨️ 快捷键说明

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