Package | Description |
---|---|
de.smarten.tsuro.shared.gamemodel |
The GameModel package is used by every other component of our software.
|
de.smarten.tsuro.shared.gui | |
de.smarten.tsuro.shared.network | |
de.smarten.tsuro.shared.network.client |
This package contains classes and interfaces for ClientToServerConnections.
|
Modifier and Type | Method and Description |
---|---|
Gate |
Tile.getConnnectedGate(Gate start) |
Gate |
IToken.getGate() |
Gate |
Token.getGate() |
static Gate |
Gate.getGateByValue(int value) |
static Gate |
Gate.getOpposite(Gate gate)
This calculates the Gate at the opposite side of the tile
|
Gate |
Path.getTipA() |
Gate |
IPath.getTipA() |
Gate |
Path.getTipB() |
Gate |
IPath.getTipB() |
static Gate |
Gate.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Gate[] |
Gate.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Map<Position,Set<Gate>> |
GameModel.getIllegalGates()
|
Modifier and Type | Method and Description |
---|---|
Gate |
Tile.getConnnectedGate(Gate start) |
static Gate |
Gate.getOpposite(Gate gate)
This calculates the Gate at the opposite side of the tile
|
void |
Path.reroute(Gate oldTip,
Gate newTip) |
void |
IPath.reroute(Gate oldTip,
Gate newTip)
This method reroutes one tip of a tile onto a new gate on the tile.
|
void |
IToken.setGate(Gate gate) |
void |
Token.setGate(Gate gate) |
void |
Path.setTips(Gate tipA,
Gate tipB) |
void |
IPath.setTips(Gate tipA,
Gate tipB)
This method reroutes both tips of a tile to new gates on the tile.
|
Constructor and Description |
---|
Path(Gate tipA,
Gate tipB)
The constructor of a path going from tipA to tipB
|
Token(Gate gate,
Position position)
This constructor creates a token.
|
Token(Gate gate,
Position position,
GameModel gameModel)
Deprecated.
The GameModel will be set by the GameModel itself, please don't pass a GameModel here.
This constructor creates a token. When creating a player, the Player constructor
binds the token to the Player by calling the
setPlayer method. |
Modifier and Type | Method and Description |
---|---|
ArrayList<Gate> |
GuiHelper.getBorderGatesFromPosition(TileGridPane tileGridPane,
Position position) |
Modifier and Type | Method and Description |
---|---|
void |
GuiHelper.setPosOnCell(javafx.scene.Node node,
TileGridPane tileGridPane,
Position position,
Gate gate,
double offsetParallel,
double offsetOrthogonal)
places a node in a certain alignment to a gate in a cell of a given
TileGridPane |
Modifier and Type | Method and Description |
---|---|
static Gate |
GameModelTranslator.eGateToGate(de.upb.swt.swtpra2017.swtinterface.Gate eGate) |
Modifier and Type | Method and Description |
---|---|
static de.upb.swt.swtpra2017.swtinterface.Gate |
GameModelTranslator.gateToEGate(Gate gate) |
Modifier and Type | Method and Description |
---|---|
void |
PlayerClientToServerConnection.sendSetTokenCmd(Gate gate) |
void |
IPlayerClientToServerConnection.sendSetTokenCmd(Gate gate)
Sends a SetTokenCmd to the server.
|
Copyright © 2017 smarTen. All rights reserved.