|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.network.VoogaClient
vooga.network.ingame.VoogaGameClient
public class VoogaGameClient
VoogaGameSessionClient handles online game sessions for clients. This can be used to send/receive actions, create/join game sessions, etc.
Constructor Summary | |
---|---|
VoogaGameClient(java.lang.String username,
long gameSessionID)
|
Method Summary | |
---|---|
void |
connect(java.net.InetAddress host)
Connects to the server at the specified address. |
protected void |
initializeConnection()
Performs any necessary set-up for a new connection. |
void |
run()
Background thread runs this and outputs messages from server as they are received. |
void |
sendObject(java.io.Serializable obj)
Sends an Object to the server. |
void |
setObjectReceiver(INetworkObjectReceiver receiver)
|
Methods inherited from class vooga.network.VoogaClient |
---|
allowConnection, blockConnection, connect, connect, disconnect, getMyInputStream, getMyName, getMyOutputStream, getMySocket, isConnected, setConnected, setMyName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VoogaGameClient(java.lang.String username, long gameSessionID)
Method Detail |
---|
public void setObjectReceiver(INetworkObjectReceiver receiver)
public void run()
public void sendObject(java.io.Serializable obj) throws java.io.IOException
obj
-
java.io.IOException
public void connect(java.net.InetAddress host) throws java.io.IOException
VoogaClient
connect
in class VoogaClient
host
- The IP of an existing VoogaChatServer.
java.io.IOException
protected void initializeConnection()
VoogaClient
initializeConnection
in class VoogaClient
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |