eapms
Class PlayerCom

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--eapms.PlayerCom
All Implemented Interfaces:
java.lang.Runnable

public class PlayerCom
extends java.lang.Thread

Used for communicating with the player during gameplay.


Field Summary
protected static int repndx
          The index of the capturing group in the regex in which the format codes will be found.
protected static java.lang.String rgx
          The color formatting tags for player communication are [[...]], where ... is the format string described in ColorFormatter.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PlayerCom(java.net.Socket sock, eapms.ActionControl action_con, eapms.muserver the_server, eapms.WorldObject the_world)
           
 
Method Summary
 void game_runningOFF()
           
 eapms.ActionControl getActionCon()
           
 eapms.muserver getServer()
           
 void printToPlayer(java.lang.String line)
           
 void run()
           
 void shutdown()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

rgx

protected static final java.lang.String rgx
The color formatting tags for player communication are [[...]], where ... is the format string described in ColorFormatter.

See Also:
eapms.ColorFormatter.stringReplace(java.lang.String), Constant Field Values

repndx

protected static final int repndx
The index of the capturing group in the regex in which the format codes will be found.

See Also:
Constant Field Values
Constructor Detail

PlayerCom

public PlayerCom(java.net.Socket sock,
                 eapms.ActionControl action_con,
                 eapms.muserver the_server,
                 eapms.WorldObject the_world)
          throws java.io.IOException
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

game_runningOFF

public void game_runningOFF()

printToPlayer

public void printToPlayer(java.lang.String line)
                   throws java.io.IOException
java.io.IOException

getServer

public eapms.muserver getServer()

getActionCon

public eapms.ActionControl getActionCon()

shutdown

public void shutdown()