📄 wall.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 + -