|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.jadv.client.JAdvClient
Field Summary | |
private GameData |
_gameData
|
private GameWindow |
_gameWindow
|
private SyncByteBuffersForChannels |
_ioBuffer
|
private SocketThread |
_ioThread
|
static java.util.logging.Logger |
logger
The logger that the entire client uses. |
private boolean |
redrawWindow
|
Constructor Summary | |
JAdvClient()
|
Method Summary | |
boolean |
connect(java.lang.String host,
int port)
Connect JAdvClient to the Proxy if we are not connected already. |
JAdvEvent |
decodeEvent()
|
void |
doCommand(java.lang.String command)
|
GameData |
getGameData()
|
SocketThread |
getIOThread()
|
void |
handleEvent(JAdvEvent event)
Handle the specified Event. |
boolean |
login(java.lang.String username,
java.lang.String password)
Logs an existing player in. |
static void |
main(java.lang.String[] args)
|
void |
move(int direction)
Moves the player into a direction. |
int |
receiveData(java.nio.channels.SocketChannel sChannel)
|
boolean |
registerNewPlayer(java.lang.String[] newPlayerAttributes)
Registers a new player with the server. |
private void |
requestAvailableRaces()
|
int |
sendData(java.nio.channels.SocketChannel sChannel)
|
void |
sendEvent(JAdvEvent event)
|
void |
setGameWindow(GameWindow gameWindow)
|
void |
setIOThread(SocketThread ioThread)
|
void |
stop(int errcode)
Exit sthe client application. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.util.logging.Logger logger
private GameWindow _gameWindow
private GameData _gameData
private SocketThread _ioThread
private SyncByteBuffersForChannels _ioBuffer
private boolean redrawWindow
Constructor Detail |
public JAdvClient()
Method Detail |
public static void main(java.lang.String[] args)
public void setGameWindow(GameWindow gameWindow)
public GameData getGameData()
public void setIOThread(SocketThread ioThread)
public SocketThread getIOThread()
public int receiveData(java.nio.channels.SocketChannel sChannel) throws java.io.IOException
java.io.IOException
public int sendData(java.nio.channels.SocketChannel sChannel) throws java.io.IOException
java.io.IOException
public void sendEvent(JAdvEvent event)
public JAdvEvent decodeEvent()
public boolean connect(java.lang.String host, int port)
host
- the proxy to connect toport
- the port to connect to the proxy on
public boolean registerNewPlayer(java.lang.String[] newPlayerAttributes)
public boolean login(java.lang.String username, java.lang.String password)
public void stop(int errcode)
public void move(int direction)
public void doCommand(java.lang.String command)
public void handleEvent(JAdvEvent event)
private void requestAvailableRaces()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |