Modifier and Type | Field and Description |
---|---|
protected Role |
role
the role of the client in a game
|
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 |
---|---|
boolean |
equals(Object o) |
int |
getClientId() |
String |
getName() |
Role |
getRole() |
int |
hashCode() |
void |
setClientId(int clientId)
Sets the clientId if it is not specified yet and the id given is larger than zero.
|
String |
toString() |
protected Role role
Copyright © 2017 smarTen. All rights reserved.