Constructor and Description |
---|
Path(Gate tipA,
Gate tipB)
The constructor of a path going from tipA to tipB
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Path |
getCounterpart()
This method calculates the path going the opposite direction of the given path
|
boolean |
getDeadFlag() |
Player |
getOwner() |
Gate |
getTipA() |
Gate |
getTipB() |
void |
reroute(Gate oldTip,
Gate newTip)
This method reroutes one tip of a tile onto a new gate on the tile.
|
void |
setDeadFlagTrue() |
void |
setOwner(Player owner) |
void |
setTips(Gate tipA,
Gate tipB)
This method reroutes both tips of a tile to new gates on the tile.
|
String |
toString() |
public void reroute(Gate oldTip, Gate newTip)
IPath
public void setTips(Gate tipA, Gate tipB)
IPath
public Path getCounterpart()
IPath
getCounterpart
in interface IPath
public Player getOwner()
public void setOwner(Player owner)
public boolean getDeadFlag()
public void setDeadFlagTrue()
Copyright © 2017 smarTen. All rights reserved.