Package game
Class Node
java.lang.Object
game.Node
An instance is a node of the graph
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return true iff ob is a Node with the same id as this one.Return the Edge of this Node that connects to Node q.getExits()
Return an unmodifiable view of the Edges leaving this Node.long
getId()
Return the unique Identifier of this Node.Return an unmodifiable view of the Nodes neighboring this Node.getTile()
Return the Tile corresponding to this Node.int
hashCode()
-
Method Details
-
getId
public long getId()Return the unique Identifier of this Node. -
getEdge
Return the Edge of this Node that connects to Node q. Throw an IllegalArgumentException if edge doesn't exist -
getExits
Return an unmodifiable view of the Edges leaving this Node. -
getNeighbors
Return an unmodifiable view of the Nodes neighboring this Node. -
getTile
Return the Tile corresponding to this Node. -
equals
Return true iff ob is a Node with the same id as this one. -
hashCode
public int hashCode()
-