public class PathTracker extends Object
Constructor and Description |
---|
PathTracker() |
Modifier and Type | Method and Description |
---|---|
static de.smarten.tsuro.shared.gamemodel.Position |
calculateAdjacentPosition(de.smarten.tsuro.shared.gamemodel.Position original,
de.smarten.tsuro.shared.gamemodel.Gate outGate) |
static de.smarten.tsuro.shared.gamemodel.Position |
calculateAdjacentPosition(de.smarten.tsuro.shared.gamemodel.Token token) |
static de.smarten.tsuro.shared.gamemodel.Token |
getSimulatedPostTurnPos(de.smarten.tsuro.shared.gamemodel.GameModel gameModel,
de.smarten.tsuro.shared.gamemodel.Placement placement,
de.smarten.tsuro.shared.gamemodel.Token token)
Simulates a turn with the available information and returns the token position a player would have after their turn
|
static de.smarten.tsuro.shared.gamemodel.Token |
getSimulatedPostTurnPos(de.smarten.tsuro.shared.gamemodel.GameModel gameModel,
de.smarten.tsuro.shared.gamemodel.Token token)
Simulates a turn with the available information and returns the token position a player would have after their turn
|
public static de.smarten.tsuro.shared.gamemodel.Token getSimulatedPostTurnPos(de.smarten.tsuro.shared.gamemodel.GameModel gameModel, de.smarten.tsuro.shared.gamemodel.Token token)
gameModel
- the game model holding placements and configuration informationtoken
- the token at which the player startspublic static de.smarten.tsuro.shared.gamemodel.Token getSimulatedPostTurnPos(de.smarten.tsuro.shared.gamemodel.GameModel gameModel, de.smarten.tsuro.shared.gamemodel.Placement placement, de.smarten.tsuro.shared.gamemodel.Token token)
gameModel
- the game model holding placements and configuration informationplacement
- the assumed placementpostTurntoken
- the token at which the player startspublic static de.smarten.tsuro.shared.gamemodel.Position calculateAdjacentPosition(de.smarten.tsuro.shared.gamemodel.Position original, de.smarten.tsuro.shared.gamemodel.Gate outGate)
original
- the current positionoutGate
- the adjacent Gatepublic static de.smarten.tsuro.shared.gamemodel.Position calculateAdjacentPosition(de.smarten.tsuro.shared.gamemodel.Token token)
original
- the current positionoutGate
- the adjacent GateCopyright © 2017 smarTen. All rights reserved.