📄 mazeref.java
字号:
package mazeImplementation;// -----------------------------------------------// Programming 2 -- Semester 2, 2007// Maze Engine implementation// Peter Tilmanis, 3 September 2007// -----------------------------------------------// Maze grid reference class// -----------------------------------------------public class MazeRef{ private int x, y, z; public MazeRef() { this(-1, -1, -1); } public MazeRef(int x, int y, int z) { this.x = x; this.y = y; this.z = z; } public int getX() { return x; } public int getY() { return y; } public int getZ() { return z; } public boolean equals(Object in) { if ( !(in instanceof MazeRef) ) return false; else { MazeRef temp = (MazeRef) in; if ( (this.x == temp.getX()) && (this.y == temp.getY()) && (this.z == temp.getZ()) ) return true; else return false; } } public int hashCode() { return this.toString().hashCode(); } public String toString() { return x + "," + y + "," + z; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -