|
||||||||||
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 Server
public Image getMap()
getMap
in interface Server
public Point getMapUpperLeft()
getMapUpperLeft
in interface Server
public Dimension getMapSize()
getMapSize
in interface Server
public boolean connect(String host, int port)
connect
in interface Server
host
- Description of Parameterport
- Description of Parameterpublic void disconnect()
disconnect
in interface Server
public boolean joinAsRole(String role)
joinAsRole
in interface Server
role
- Description of Parameterpublic void startGame()
startGame
in interface Server
public long doAction(int pieceHandle, Action a)
doAction
in interface Server
pieceHandle
- Description of Parametera
- Description of Parameterpublic void abortAction(long actionId)
abortAction
in interface Server
actionId
- Description of Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |