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 | Field and Description |
---|---|
protected ArrayList<Position> |
Configuration.blockedPositions
the blocked positions on the board which work like the border
|
Modifier and Type | Method and Description |
---|---|
Position |
GameModel.getNextTilePos() |
Position |
Placement.getPosition() |
Position |
IToken.getPosition() |
Position |
Token.getPosition() |
Position |
Position.translated(int dx,
int dy,
int max) |
Modifier and Type | Method and Description |
---|---|
ArrayList<Position> |
Configuration.getBlockedPositions()
Please use
getBlockedPositionsIterator instead. |
Iterator<Position> |
Configuration.getBlockedPositionsIterator() |
Iterator<Position> |
IConfiguration.getBlockedPositionsIterator() |
Map<Position,Set<Gate>> |
GameModel.getIllegalGates()
|
Modifier and Type | Method and Description |
---|---|
Placement |
GameModel.getPlacementByPosition(Position position)
Returns a placement or null, depending on whether a tile is placed at the position passed
|
boolean |
Configuration.isBlockedPosition(Position p) |
void |
IToken.setPosition(Position position) |
void |
Token.setPosition(Position position) |
void |
GameModel.updateTurnInformation(Player activePlayer,
int currentRoundNo,
Position nextTilePos)
Updates information related to a turn (activePlayer, currentRoundNo, nextTilePos).
|
Constructor and Description |
---|
Placement(Tile tile,
Position position) |
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. |
Constructor and Description |
---|
Configuration(ArrayList<Integer> playerTiles,
int playerCount,
int roundTimePlayer,
int roundTimeAi,
int presentationTime,
int boardLength,
ArrayList<Position> blockedPositions) |
Modifier and Type | Method and Description |
---|---|
Position |
TileImageView.getPosition() |
Modifier and Type | Method and Description |
---|---|
TileImageView |
GuiHelper.addTile(Position position,
int tileId,
Rotation rotation,
TileGridPane tileGridPane)
adds a TileImageView to a position on a given pane.
|
TileImageView |
GuiHelper.addTile(Position position,
Tile tile,
TileGridPane tileGridPane)
adds a tile to a position on a given pane.
|
ArrayList<Gate> |
GuiHelper.getBorderGatesFromPosition(TileGridPane tileGridPane,
Position position) |
TileImageView |
TileGridPane.getSingleTileImageView(Position position) |
void |
TileImageView.setPosition(Position position) |
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 |
void |
TileGridPane.setSingleTileImageView(TileImageView tileImageView,
Position position)
sets a TileImageView element on tileImageViews on a given position
|
Modifier and Type | Method and Description |
---|---|
static Position |
GameModelTranslator.ePositionToPosition(de.upb.swt.swtpra2017.swtinterface.Position ePos)
takes an EMF Position object and outputs the equivalent GameModel Position object
|
Modifier and Type | Method and Description |
---|---|
static de.upb.swt.swtpra2017.swtinterface.Position |
GameModelTranslator.positionToEPosition(Position pos)
Takes a GameModel Position object and outputs the equivalent EMF Position object.
|
Modifier and Type | Method and Description |
---|---|
void |
PlayerClientToServerConnection.sendSetTileCmd(Tile tile,
Position position) |
void |
IPlayerClientToServerConnection.sendSetTileCmd(Tile tile,
Position position)
Sends a SetTileCmd to the server.
|
Copyright © 2017 smarTen. All rights reserved.