|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.vergil.net.AppianGWTClient
public class AppianGWTClient
| Field Summary | |
|---|---|
(package private) VergilAppiusGWTCommunicator |
communicator
WRITEME: Document this brpocock@star-hope.org |
private boolean |
isBusy
whether this is busy doing something |
private long |
lastInputTime
the last time something cool happened |
(package private) UserRecord |
userRecord
The user connected through this client; Field only ever set to null: org.starhope.vergil.net.AppianGWTClient.userRecord |
| Constructor Summary | |
|---|---|
AppianGWTClient()
|
|
| Method Summary | |
|---|---|
void |
close()
Close the server connection and terminate the game |
void |
connect(String serverAddress,
int serverPort)
Connect to the server based upon a hostname and port |
long |
getIdleTime()
|
String |
getName()
WRITEME: Document this method brpocock@star-hope.org |
boolean |
isBusy()
|
private void |
logOut()
WRITEME: Document this method brpocock@star-hope.org |
void |
send(String string)
WRITEME: Document this method brpocock@star-hope.org |
void |
sendResponse(com.google.gwt.json.client.JSONObject ret)
WRITEME: Document this method brpocock@star-hope.org |
void |
setBusyState(boolean b)
WRITEME: Document this method brpocock@star-hope.org |
void |
setLastInputTime(long thatTime)
WRITEME: Document this method brpocock@star-hope.org |
void |
tick(long currentTime,
long deltaTime)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.starhope.vergil.net.AppianClient |
|---|
toString |
| Field Detail |
|---|
UserRecord userRecord
VergilAppiusGWTCommunicator communicator
private boolean isBusy
private long lastInputTime
| Constructor Detail |
|---|
public AppianGWTClient()
| Method Detail |
|---|
public void close()
AppianClient
close in interface AppianClientAppianClient.close()
public void connect(String serverAddress,
int serverPort)
throws UnknownHostException,
IOException,
ServerDisconnectedException
AppianClient
connect in interface AppianClientserverAddress - hostname or IP address of the serverserverPort - port number on the server
UnknownHostException - If the hostname can't be interpreted
IOException - If we're not able to connect to the server
ServerDisconnectedException - If we're disconnectedAppianClient.connect(java.lang.String,
int)public long getIdleTime()
public String getName()
public boolean isBusy()
private void logOut()
public void send(String string)
AppianClient
send in interface AppianClientstring - WRITEMEAppianClient.send(java.lang.String)
public void sendResponse(com.google.gwt.json.client.JSONObject ret)
throws ServerDisconnectedException
sendResponse in interface AppianClientret - WRITEME
ServerDisconnectedException - WRITEMEpublic void setBusyState(boolean b)
AppianClient
setBusyState in interface AppianClientb - WRITEMEAppianClient.setBusyState(boolean)public void setLastInputTime(long thatTime)
AppianClient
setLastInputTime in interface AppianClientthatTime - WRITEMCanProcessCommands.setLastInputTime(long)
public void tick(long currentTime,
long deltaTime)
tick in interface AppianClientcurrentTime - WRITEMEdeltaTime - WRITEMEAppianClient.tick(long, long)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||