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.
|
Modifier and Type | Field and Description |
---|---|
protected Role |
Client.role
the role of the client in a game
|
Modifier and Type | Method and Description |
---|---|
Role |
Client.getRole() |
static Role |
Role.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Role[] |
Role.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
Client(String name,
Role role)
A constructor that sets the client Role and the client Name
|
Modifier and Type | Method and Description |
---|---|
static Role |
GameModelTranslator.eClientRoleToRole(de.upb.swt.swtpra2017.swtinterface.ClientRole eClientRole) |
Modifier and Type | Method and Description |
---|---|
static de.upb.swt.swtpra2017.swtinterface.ClientRole |
GameModelTranslator.roleToEClientRole(Role role) |
Modifier and Type | Method and Description |
---|---|
void |
PlayerClientToServerConnection.sendGameJoinRequest(int gameId,
String clientName,
Role role) |
void |
IPlayerClientToServerConnection.sendGameJoinRequest(int gameId,
String clientName,
Role role)
Sends a GameJoinRequest to the server.
|
protected void |
ObserverClientToServerConnection.sendGameJoinRequestWithRole(int gameId,
String clientName,
Role role)
Sends a GameJoinRequest to the server.
|
Copyright © 2017 smarTen. All rights reserved.