java.lang.Object
java.lang.Thread
marauroa.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 classes inherited from class java.lang.Thread |
java.lang.Thread.UncaughtExceptionHandler |
| 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 |
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
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
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)