Package | Description |
---|---|
de.smarten.tsuro.shared.gamemodel |
The GameModel package is used by every other component of our software.
|
de.smarten.tsuro.shared.network | |
de.smarten.tsuro.shared.network.client |
This package contains classes and interfaces for ClientToServerConnections.
|
de.smarten.tsuro.shared.utility |
Modifier and Type | Method and Description |
---|---|
Player |
GameModel.getActivePlayer() |
Player |
Path.getOwner() |
Player |
Tile.getOwner() |
Player |
Token.getPlayer() |
Player |
Game.getPlayerByClientId(int clientId)
returns the player with the client id passed or null, if that player doesn't exist
|
Modifier and Type | Method and Description |
---|---|
Iterator<Player> |
Game.getPlayersIterator() |
Iterator<Player> |
IGame.getPlayersIterator() |
Iterator<Player> |
Game.getWinnersIterator()
Returns an iterator over the players that won the game.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Game.addPlayer(Player player) |
boolean |
IGame.addPlayer(Player player)
adds a
Player object to the list of players that participate in this game. |
boolean |
Game.addWinner(Player player)
adds a player to the winner list
|
boolean |
Game.kickPlayer(Player player,
KickState kickState) |
boolean |
IGame.kickPlayer(Player player,
KickState kickState)
changes the given players kickState (only if the player object belongs to this game)
|
void |
GameModel.setActivePlayer(Player activePlayer) |
void |
Path.setOwner(Player owner) |
void |
GameModel.updateTurnInformation(Player activePlayer,
int currentRoundNo,
Position nextTilePos)
Updates information related to a turn (activePlayer, currentRoundNo, nextTilePos).
|
Modifier and Type | Method and Description |
---|---|
static Placement |
GameModelTranslator.ePlacementToPlacement(de.upb.swt.swtpra2017.swtinterface.Placement ePlacement,
Player player)
Translates an EMF Placement object into a GameModel Placement object using
a Tile object of the player passed and removing it from that player's hand.
|
static de.upb.swt.swtpra2017.swtinterface.Player |
GameModelTranslator.playerToEPlayer(Player player)
creates an EMF Player object from a GameModel Player object
|
Modifier and Type | Method and Description |
---|---|
void |
IClientToServerConnectionCallable.kickNotificationCallback(List<Player> kickedPlayers)
Will be called by the ClientToServerConnection when a KickNotification
is received.
|
Modifier and Type | Method and Description |
---|---|
static String |
MessageBuilder.playersIteratorToNamesString(Iterator<Player> playersIterator)
Concatenates the names of players given by an iterator to a beautiful comma
separated string that can be printed to the user.
|
Copyright © 2017 smarTen. All rights reserved.