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

java.lang.Object
  extended by com.planet_ink.coffee_mud.core.intermud.cm1.commands.CM1Command
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Runnable
Direct Known Subclasses:
Block, Echo, FileCmd, GetStat, GetSys, Listen, Login, Logout, MUDInfo, Quit, Shutdown, Target

public abstract class CM1Command
extends java.lang.Object
implements java.lang.Runnable, java.lang.Cloneable


Field Summary
protected  java.lang.String className
           
protected  java.lang.String parameters
           
protected  RequestHandler req
           
 
Constructor Summary
CM1Command()
           
CM1Command(RequestHandler req, java.lang.String parameters)
           
 
Method Summary
abstract  java.lang.String getCommandWord()
           
abstract  java.lang.String getHelp(MOB user, PhysicalAgent target, java.lang.String rest)
           
 PhysicalAgent getTarget(java.lang.String parameters)
           
static CM1Command newInstance(java.lang.Class<? extends CM1Command> cls, RequestHandler req, java.lang.String parms)
           
abstract  boolean passesSecurityCheck(MOB user, PhysicalAgent target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

className

protected final java.lang.String className

parameters

protected final java.lang.String parameters

req

protected final RequestHandler req
Constructor Detail

CM1Command

public CM1Command()

CM1Command

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

newInstance

public static CM1Command newInstance(java.lang.Class<? extends CM1Command> cls,
                                     RequestHandler req,
                                     java.lang.String parms)

getTarget

public PhysicalAgent getTarget(java.lang.String parameters)

getCommandWord

public abstract java.lang.String getCommandWord()

passesSecurityCheck

public abstract boolean passesSecurityCheck(MOB user,
                                            PhysicalAgent target)

getHelp

public abstract java.lang.String getHelp(MOB user,
                                         PhysicalAgent target,
                                         java.lang.String rest)