Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

marauroa.game
Class GameServerManager  view GameServerManager download GameServerManager.java

java.lang.Object
  extended byjava.lang.Thread
      extended bymarauroa.game.GameServerManager
All Implemented Interfaces:
java.lang.Runnable

public class GameServerManager
extends java.lang.Thread

The GameServerManager is a active entity of the marauroa.game package, it is in charge of processing all the messages and modify PlayerEntry Container accordingly.


Nested Class Summary
private static class GameServerManager.ServerInfo
           
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  boolean isfinished
          isFinished is true when the thread has really exited.
private  boolean keepRunning
          The thread will be running while keepRunning is true
(package private) static int lastActionIdGenerated
           
private  marauroa.net.NetworkServerManager netMan
           
private  PlayerEntryContainer playerContainer
           
private  RPServerManager rpMan
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GameServerManager(marauroa.net.NetworkServerManager netMan)
          Constructor that initialize also the RPManager
GameServerManager(marauroa.net.NetworkServerManager netMan, RPServerManager rpMan)
          Constructor that initialize also the RPManager
 
Method Summary
 void finish()
           
private  void processActionEvent(marauroa.net.MessageC2SAction msg)
           
private  void processChooseCharacterEvent(marauroa.net.MessageC2SChooseCharacter msg)
           
private  void processLoginEvent(marauroa.net.MessageC2SLogin msg)
           
private  void processLogoutEvent(marauroa.net.MessageC2SLogout msg)
           
private  void processPerceptionACKEvent(marauroa.net.MessageC2SPerceptionACK msg)
           
 void run()
          The method of Thread that will be run if there is no Runnable object associated with the Thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

netMan

private marauroa.net.NetworkServerManager netMan

rpMan

private RPServerManager rpMan

playerContainer

private PlayerEntryContainer playerContainer

keepRunning

private boolean keepRunning
The thread will be running while keepRunning is true


isfinished

private boolean isfinished
isFinished is true when the thread has really exited.


lastActionIdGenerated

static int lastActionIdGenerated
Constructor Detail

GameServerManager

public GameServerManager(marauroa.net.NetworkServerManager netMan)
Constructor that initialize also the RPManager


GameServerManager

public GameServerManager(marauroa.net.NetworkServerManager netMan,
                         RPServerManager rpMan)
Constructor that initialize also the RPManager

Method Detail

finish

public void finish()

run

public void run()
Description copied from class: java.lang.Thread
The method of Thread that will be run if there is no Runnable object associated with the Thread. Thread's implementation does nothing at all.


processLoginEvent

private void processLoginEvent(marauroa.net.MessageC2SLogin msg)

processChooseCharacterEvent

private void processChooseCharacterEvent(marauroa.net.MessageC2SChooseCharacter msg)

processLogoutEvent

private void processLogoutEvent(marauroa.net.MessageC2SLogout msg)

processActionEvent

private void processActionEvent(marauroa.net.MessageC2SAction msg)

processPerceptionACKEvent

private void processPerceptionACKEvent(marauroa.net.MessageC2SPerceptionACK msg)