org.argosfields.multi.client
Class GameClient

java.lang.Object
  extended byorg.argosfields.multi.client.GameClient
All Implemented Interfaces:
IGameClient

public final class GameClient
extends Object
implements IGameClient

GameClient.java

Version:
$Revision: 1.3 $ $Date: 2004/04/17 18:21:01 $
Author:
Xavier Cho

Method Summary
 void addGameClientListener(IGameClientListener listener)
           
 void endSession()
           
protected  void fireSessionEnded()
           
protected  void fireSessionStarted(ServerInfo info)
           
protected  void fireSystemMessageReceived(String message)
           
static IGameClient getInstance()
           
 String getSessionId()
           
 boolean isSessionStarted()
           
 void removeGameClientListener(IGameClientListener listener)
           
 void startSession(String hostAddress, int port, String sessionId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static IGameClient getInstance()

getSessionId

public String getSessionId()
Specified by:
getSessionId in interface IGameClient
See Also:
IGameClient.getSessionId()

startSession

public void startSession(String hostAddress,
                         int port,
                         String sessionId)
Specified by:
startSession in interface IGameClient
See Also:
IGameClient.startSession(java.lang.String, int, java.lang.String)

endSession

public void endSession()
Specified by:
endSession in interface IGameClient
See Also:
IGameClient.endSession()

isSessionStarted

public boolean isSessionStarted()
Specified by:
isSessionStarted in interface IGameClient
See Also:
IGameClient.isSessionStarted()

addGameClientListener

public void addGameClientListener(IGameClientListener listener)
Specified by:
addGameClientListener in interface IGameClient
See Also:
IGameClient.addGameClientListener(org.argosfields.multi.IGameClientListener)

removeGameClientListener

public void removeGameClientListener(IGameClientListener listener)
Specified by:
removeGameClientListener in interface IGameClient
See Also:
IGameClient.removeGameClientListener(org.argosfields.multi.IGameClientListener)

fireSessionStarted

protected void fireSessionStarted(ServerInfo info)

fireSessionEnded

protected void fireSessionEnded()

fireSystemMessageReceived

protected void fireSystemMessageReceived(String message)


Copyright © Gnome Korea. All Rights Reserved.