Modifier and Type | Method and Description |
---|---|
Path |
getCounterpart()
This method calculates the path going the opposite direction of the given path
|
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 |
setTips(Gate tipA,
Gate tipB)
This method reroutes both tips of a tile to new gates on the tile.
|
Gate getTipA()
Gate getTipB()
void reroute(Gate oldTip, Gate newTip)
oldTip
- the old gate that should be reroutednewTip
- the new gate the tip is rerouted ontovoid setTips(Gate tipA, Gate tipB)
tipA
- one of the new gates the tip should be rerouted totipB
- one of the new gates the tip should be rerouted toPath getCounterpart()
Copyright © 2017 smarTen. All rights reserved.