public class ChessBoardPath
extends java.lang.Object
implements java.io.Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
ChessBoardPath() |
|
ChessBoardPath(ChessBoardCoord source,
ChessBoardCoord destination) |
|
ChessBoardPath(java.lang.String source,
java.lang.String destination) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
get4Distance() |
int |
get8Distance() |
ChessBoardCoord |
getDestination() |
ChessBoardCoord |
getSource() |
int |
hashCode() |
boolean |
isOverlapping(ChessBoardCoord c) |
java.lang.String |
toString() |
protected ChessBoardPath()
public ChessBoardPath(java.lang.String source,
java.lang.String destination)
public ChessBoardPath(ChessBoardCoord source, ChessBoardCoord destination)
public ChessBoardCoord getSource()
public ChessBoardCoord getDestination()
public int get4Distance()
public int get8Distance()
public boolean isOverlapping(ChessBoardCoord c)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015. All Rights Reserved.