public class WumpusCave
extends java.lang.Object
Constructor and Description |
---|
WumpusCave()
Default Constructor.
|
WumpusCave(int caveXDimension,
int caveYDimension)
Create a grid of rooms of dimensions x and y, representing the wumpus's
cave.
|
WumpusCave(int caveXDimension,
int caveYDimension,
java.util.Set<AgentPosition> allowedPositions)
Create a grid of rooms of dimensions x and y, representing the wumpus's
cave.
|
Modifier and Type | Method and Description |
---|---|
int |
getCaveXDimension() |
int |
getCaveYDimension() |
java.util.List<AgentPosition> |
getLocationsLinkedTo(AgentPosition fromLocation) |
public WumpusCave()
public WumpusCave(int caveXDimension, int caveYDimension)
caveXDimension
- the cave's x dimension.caveYDimension
- the cave's y dimension.public WumpusCave(int caveXDimension, int caveYDimension, java.util.Set<AgentPosition> allowedPositions)
caveXDimension
- the cave's x dimension.caveYDimension
- the cave's y dimension.allowedPositions
- the set of legal agent positions that can be reached within
the cave.public int getCaveXDimension()
public int getCaveYDimension()
public java.util.List<AgentPosition> getLocationsLinkedTo(AgentPosition fromLocation)