java.lang.Cloneable
, java.lang.Runnable
Block
, Echo
, FileCmd
, GetStat
, GetSys
, Import
, Listen
, Login
, Logout
, MUDInfo
, Quit
, Shutdown
, Target
public abstract class CM1Command
extends java.lang.Object
implements java.lang.Runnable, java.lang.Cloneable
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.String |
className |
|
protected java.lang.String |
parameters |
|
protected RequestHandler |
req |
Constructor | Description |
---|---|
CM1Command() |
|
CM1Command(RequestHandler req,
java.lang.String parameters) |
Modifier and Type | Method | Description |
---|---|---|
abstract java.lang.String |
getCommandWord() |
|
abstract java.lang.String |
getHelp(MOB user,
PhysicalAgent target,
java.lang.String rest) |
|
PhysicalAgent |
getTarget(java.lang.String parameters) |
|
boolean |
isAuthorized(MOB user,
PhysicalAgent target) |
|
static CM1Command |
newInstance(java.lang.Class<? extends CM1Command> cls,
RequestHandler req,
java.lang.String parms) |
|
abstract boolean |
passesSecurityCheck(MOB user,
PhysicalAgent target) |
protected final java.lang.String className
protected final java.lang.String parameters
protected final RequestHandler req
public CM1Command()
public CM1Command(RequestHandler req, java.lang.String parameters)
public static CM1Command newInstance(java.lang.Class<? extends CM1Command> cls, RequestHandler req, java.lang.String parms)
public boolean isAuthorized(MOB user, PhysicalAgent target)
public PhysicalAgent getTarget(java.lang.String parameters)
public abstract java.lang.String getCommandWord()
public abstract boolean passesSecurityCheck(MOB user, PhysicalAgent target)
public abstract java.lang.String getHelp(MOB user, PhysicalAgent target, java.lang.String rest)