public class Export extends StdCommand
idConverter
ID, noCoinFilter
Constructor | Description |
---|---|
Export() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
canBeOrdered() |
Whether a group leader or charmer can order their followers
to do this command.
|
boolean |
execute(MOB mob,
java.util.List<java.lang.String> commands,
int metaFlags) |
This method actually performs the command, when the given parsed
set of command-line words.
|
java.lang.Object |
executeInternal(MOB mob,
int metaFlags,
java.lang.Object... args) |
This method is used for making "insider" calls to the command.
|
java.lang.String[] |
getAccessWords() |
Returns the set of command words, with the most public one first,
that are entered by the user to initiate this command.
|
protected java.lang.String |
getCatalogData(java.util.Map<java.lang.String,?> found) |
|
protected CMClass.CMObjectType |
getItemSubType(java.lang.String subType,
int fileNameCode,
java.lang.String[] fileName) |
|
void |
reallyExport(MOB mob,
Session S,
java.lang.String fileName,
java.lang.String xml) |
|
boolean |
securityCheck(MOB mob) |
Whether this command is available to the given player
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
actionsCost, canBeCancelled, checkArguments, checkedActionsCost, combatActionsCost, compareTo, copyOf, getArgumentSetIndex, getVisibleRoomTarget, I, ID, initializeClass, isOccupiedWithOtherWork, L, name, newInstance, preExecute, putInCommandlist
public java.lang.String[] getAccessWords()
Command
getAccessWords
in interface Command
getAccessWords
in class StdCommand
public void reallyExport(MOB mob, Session S, java.lang.String fileName, java.lang.String xml)
public boolean execute(MOB mob, java.util.List<java.lang.String> commands, int metaFlags) throws java.io.IOException
Command
execute
in interface Command
execute
in class StdCommand
mob
- the mob or player issueing the commandcommands
- usually the command words and parameters; a set of stringsmetaFlags
- flags denoting how the command is being executedjava.io.IOException
- usually means the player has dropped carrierCommand.actionsCost(MOB, List)
,
Command.securityCheck(MOB)
protected CMClass.CMObjectType getItemSubType(java.lang.String subType, int fileNameCode, java.lang.String[] fileName)
protected java.lang.String getCatalogData(java.util.Map<java.lang.String,?> found)
public java.lang.Object executeInternal(MOB mob, int metaFlags, java.lang.Object... args) throws java.io.IOException
Command
executeInternal
in interface Command
executeInternal
in class StdCommand
mob
- the mob or player issueing the commandmetaFlags
- flags denoting how the command is being executedargs
- a set of object parametersjava.io.IOException
- usually means the player has dropped carrierargs[0] = commandType: AREA, PLAYER, ROOM
args[1] = subType: DATA, PLAYER, MOBS, ITEMS, WEAPONS, ARMOR
args[2] = fileName: MEMORY, SCREEN, EMAIL
args[3] = fileNameType (0=screen, 1=disk, 2=directory, 3=email, 4=memory)
args[4] = Session
args[5] = area
args[6] = room
public boolean canBeOrdered()
Command
canBeOrdered
in interface Command
canBeOrdered
in class StdCommand
public boolean securityCheck(MOB mob)
Command
securityCheck
in interface Command
securityCheck
in class StdCommand
mob
- the player mob who might not even know about this command