|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gecco.client.ServerAdapter
This is an adapter for the Server interface, all methods are implemented to do nothing.
| Constructor Summary | |
ServerAdapter()
|
|
| Method Summary | |
void |
abortAction(long actionId)
Description of the Method |
boolean |
connect(String host,
int port)
Description of the Method |
void |
disconnect()
Description of the Method |
long |
doAction(int pieceHandle,
Action a)
Description of the Method |
StringTokenizer |
getAvailableRoles()
Gets the AvailableRoles attribute of the ServerAdapter object |
Image |
getMap()
Gets the Map attribute of the ServerAdapter object |
Dimension |
getMapSize()
Gets the MapSize attribute of the ServerAdapter object |
Point |
getMapUpperLeft()
Gets the MapUpperLeft attribute of the ServerAdapter object |
boolean |
joinAsRole(String role)
Description of the Method |
void |
startGame()
Description of the Method |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public ServerAdapter()
| Method Detail |
public StringTokenizer getAvailableRoles()
getAvailableRoles in interface Serverpublic Image getMap()
getMap in interface Serverpublic Point getMapUpperLeft()
getMapUpperLeft in interface Serverpublic Dimension getMapSize()
getMapSize in interface Server
public boolean connect(String host,
int port)
connect in interface Serverhost - Description of Parameterport - Description of Parameterpublic void disconnect()
disconnect in interface Serverpublic boolean joinAsRole(String role)
joinAsRole in interface Serverrole - Description of Parameterpublic void startGame()
startGame in interface Server
public long doAction(int pieceHandle,
Action a)
doAction in interface ServerpieceHandle - Description of Parametera - Description of Parameterpublic void abortAction(long actionId)
abortAction in interface ServeractionId - Description of Parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||