exitpoint.java

来自「简单的一个maze系统」· Java 代码 · 共 46 行

JAVA
46
字号
package mazeImplementation;// -----------------------------------------------// Programming 2 -- Semester 2, 2007// Maze Engine implementation// Peter Tilmanis, 21 August 2007// -----------------------------------------------// Exit point class// -----------------------------------------------public class ExitPoint{   private String name;   private MazeRef destination;   public ExitPoint(String name, MazeRef destination)   {      this.name = name;      this.destination = destination;   }   public String getName()   {      return name;   }   public MazeRef getDestination()   {      return destination;   }   public boolean equals(ExitPoint in)   {      if ( (this.name.equals(in.name)) &&           (this.destination.equals(in.destination)))         return true;      else         return false;   }   public String toString()   {      return name + ":" + destination;   }}

⌨️ 快捷键说明

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