com.planet_ink.coffee_mud.core.intermud.cm1.commands
Class Listen

java.lang.Object
  extended by com.planet_ink.coffee_mud.core.intermud.cm1.commands.CM1Command
      extended by com.planet_ink.coffee_mud.core.intermud.cm1.commands.Listen
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Runnable
Direct Known Subclasses:
Monitor

public class Listen
extends CM1Command


Nested Class Summary
protected static class Listen.ListenCriterium
           
protected  class Listen.Listener
           
protected static class Listen.STATTYPE
           
 
Field Summary
protected static SLinkedList<Listen.Listener> listeners
           
 
Fields inherited from class com.planet_ink.coffee_mud.core.intermud.cm1.commands.CM1Command
className, parameters, req
 
Constructor Summary
Listen(RequestHandler req, java.lang.String parameters)
           
 
Method Summary
 java.lang.String getCommandWord()
           
 java.util.List<Listen.ListenCriterium> getCriterium(java.lang.String rest)
           
 java.lang.String getHelp(MOB user, PhysicalAgent target, java.lang.String rest)
           
 boolean parameterCheck(MOB user, Listen.ListenCriterium crit)
           
 boolean passesSecurityCheck(MOB user, PhysicalAgent target)
           
 void run()
           
 boolean securityCheck(MOB user, Listen.ListenCriterium crit)
           
protected  void sendMsg(Listen.Listener listener, java.lang.String msg)
           
 
Methods inherited from class com.planet_ink.coffee_mud.core.intermud.cm1.commands.CM1Command
getTarget, newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listeners

protected static SLinkedList<Listen.Listener> listeners
Constructor Detail

Listen

public Listen(RequestHandler req,
              java.lang.String parameters)
Method Detail

getCommandWord

public java.lang.String getCommandWord()
Specified by:
getCommandWord in class CM1Command

sendMsg

protected void sendMsg(Listen.Listener listener,
                       java.lang.String msg)
                throws java.io.IOException
Throws:
java.io.IOException

securityCheck

public boolean securityCheck(MOB user,
                             Listen.ListenCriterium crit)

parameterCheck

public boolean parameterCheck(MOB user,
                              Listen.ListenCriterium crit)

getCriterium

public java.util.List<Listen.ListenCriterium> getCriterium(java.lang.String rest)
                                                    throws java.io.IOException
Throws:
java.io.IOException

run

public void run()

passesSecurityCheck

public boolean passesSecurityCheck(MOB user,
                                   PhysicalAgent target)
Specified by:
passesSecurityCheck in class CM1Command

getHelp

public java.lang.String getHelp(MOB user,
                                PhysicalAgent target,
                                java.lang.String rest)
Specified by:
getHelp in class CM1Command