org.argosfields.multi.server
Class GameServer

java.lang.Object
  extended byorg.argosfields.multi.server.GameServer
All Implemented Interfaces:
IGameServer

public final class GameServer
extends Object
implements IGameServer

GameServer.java

Version:
$Revision: 1.2 $ $Date: 2004/04/17 18:21:02 $
Author:
Xavier Cho

Method Summary
 void addServerStatusListener(IServerStatusListener listener)
           
protected  void fireServerStarted()
           
protected  void fireServerStopped()
           
static IGameServer getInstance()
           
 List getPlayers()
           
 boolean isRunning()
           
 Session login(String userName)
           
 void logout(String sessionId)
           
static void main(String[] args)
           
 void removeServerStatusListener(IServerStatusListener listener)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static IGameServer getInstance()

start

public void start()
           throws Exception
Specified by:
start in interface IGameServer
Throws:
Exception
See Also:
IGameServer.start()

isRunning

public boolean isRunning()
Specified by:
isRunning in interface IGameServer
See Also:
IGameServer.isRunning()

stop

public void stop()
          throws Exception
Specified by:
stop in interface IGameServer
Throws:
Exception
See Also:
IGameServer.stop()

login

public Session login(String userName)
              throws LoginException
Specified by:
login in interface IGameServer
Throws:
LoginException
See Also:
IGameServer.login(java.lang.String)

logout

public void logout(String sessionId)
Specified by:
logout in interface IGameServer
See Also:
IGameServer.logout(java.lang.String)

getPlayers

public List getPlayers()
Specified by:
getPlayers in interface IGameServer
See Also:
IGameServer.getPlayers()

addServerStatusListener

public void addServerStatusListener(IServerStatusListener listener)
Specified by:
addServerStatusListener in interface IGameServer
See Also:
org.argosfields.multi.server.IGameServer#addServerStatusListener(org.argosfields.server.IServerStatusListener)

removeServerStatusListener

public void removeServerStatusListener(IServerStatusListener listener)
Specified by:
removeServerStatusListener in interface IGameServer
See Also:
org.argosfields.multi.server.IGameServer#removeServerStatusListener(org.argosfields.server.IServerStatusListener)

fireServerStarted

protected void fireServerStarted()

fireServerStopped

protected void fireServerStopped()

main

public static void main(String[] args)


Copyright © Gnome Korea. All Rights Reserved.