public class Import extends StdCommand
Modifier and Type | Field | Description |
---|---|---|
protected static java.lang.String[][] |
colors |
|
static java.lang.String[][] |
objDescs |
idConverter
ID, noCoinFilter
Constructor | Description |
---|---|
Import() |
Modifier and Type | Method | Description |
---|---|---|
static Room |
applyRoomCodeBits(Room R,
Room lastRoom,
java.util.Map<Room,Room> petShops,
long codeBits,
boolean circleFormat) |
|
boolean |
canBeOrdered() |
Whether a group leader or charmer can order their followers
to do this command.
|
protected static Room |
changeRoomClass(Room R,
java.lang.String newClass) |
|
protected static void |
doWeapon(Weapon I,
java.lang.String name,
int val1,
java.lang.String str1,
int val2,
int val3,
int val4,
java.lang.String str4) |
|
protected static java.lang.String |
eatLine(java.util.List<java.lang.String> V) |
|
protected static java.lang.String |
eatLineSquiggle(java.util.List<java.lang.String> V) |
|
protected static java.lang.String |
eatNextLine(java.util.List<java.lang.String> V) |
|
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.
|
boolean |
executeImporter(MOB mob,
java.util.List<java.lang.Object> commands) |
|
java.lang.Object |
executeInternal(MOB mob,
int metaFlags,
java.lang.Object... args) |
This method is used for making "insider" calls to the command.
|
protected static java.lang.String |
fixReadableContent(java.lang.String text) |
|
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 static java.lang.String |
getAreaAuthor(java.util.List<java.lang.String> V) |
|
protected static java.lang.String |
getAreaName(java.util.List<java.lang.String> V) |
|
protected static long |
getBitMask(java.lang.String str,
int which) |
|
static int |
getDRoll(java.lang.String str) |
|
protected static MOB |
getMOB(java.lang.String OfThisID,
Room putInRoom,
Session session,
java.util.List<?> mobData,
java.util.List<?> mobProgData,
java.util.List<?> specialData,
java.util.List<?> shopData,
java.util.Map<java.lang.String,MOB> areaMOBS,
java.util.Map<java.lang.String,MOB> doneMOBS,
java.lang.String areaFileName,
boolean compileErrors,
java.util.List<java.lang.Object> commands,
java.util.List<java.lang.Object> errorList) |
|
protected static Room |
getRoom(java.util.Map<java.lang.String,Room> hashedRoomSet,
java.lang.String areaName,
java.lang.String calledThis) |
|
protected static Room |
getRoom(java.util.Map<java.lang.String,Room> areaHashedRoomSet,
java.util.Map<java.lang.String,Room> hashedRoomSet,
java.lang.String areaName,
java.lang.String calledThis) |
|
protected static java.lang.String |
getSpell(java.lang.String word,
int i) |
|
protected static boolean |
hasReadableContent(java.lang.String objectName) |
|
protected void |
importCustomFiles(MOB mob,
java.util.Map<java.lang.String,java.lang.String> files,
java.util.Set<java.lang.String> customBother,
boolean noPrompt,
boolean noDelete) |
|
protected void |
importCustomObjects(MOB mob,
java.util.List<CMObject> custom,
java.util.Set<java.lang.String> customBother,
boolean noPrompt,
boolean noDelete) |
|
protected static int |
importNumber(java.lang.String s) |
|
static boolean |
isBadID(java.lang.String id) |
|
protected static java.lang.String |
nextLine(java.util.List<java.lang.String> V) |
|
protected static void |
processRoomRelinks(java.util.List<java.lang.String> reLinkTable,
java.lang.String areaName,
java.util.Map<java.lang.String,Room> areaHashedRoomSet,
java.util.Map<java.lang.String,Room> hashedRoomSet) |
|
protected static void |
readBlocks(java.util.List<java.lang.String> buf,
java.util.List<java.lang.String> areaData,
java.util.List<java.lang.Object> roomData,
java.util.List<java.lang.String> mobData,
java.util.List<java.lang.String> resetData,
java.util.List<java.lang.String> objectData,
java.util.List<java.lang.String> mobProgData,
java.util.List<java.lang.String> objProgData,
java.util.List<java.lang.String> shopData,
java.util.List<java.lang.String> specialData,
java.util.List<java.lang.String> socialData,
java.util.List<java.lang.String> roomProgData) |
|
protected static boolean |
returnAnError(Session sess,
java.lang.String str,
boolean compileErrors,
java.util.List<java.lang.Object> commands) |
|
boolean |
securityCheck(MOB mob) |
Whether this command is available to the given player
|
static java.lang.String |
socialFix(java.lang.String str) |
|
protected boolean |
temporarilyDeleteArea(MOB mob,
java.util.List<java.lang.String> reLinkTable,
java.lang.String areaName) |
|
protected static java.lang.String |
trimSpacesOnly(java.lang.String s) |
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 static final java.lang.String[][] objDescs
protected static final java.lang.String[][] colors
public java.lang.String[] getAccessWords()
Command
getAccessWords
in interface Command
getAccessWords
in class StdCommand
protected static java.lang.String getAreaName(java.util.List<java.lang.String> V)
protected static Room getRoom(java.util.Map<java.lang.String,Room> hashedRoomSet, java.lang.String areaName, java.lang.String calledThis)
protected static Room getRoom(java.util.Map<java.lang.String,Room> areaHashedRoomSet, java.util.Map<java.lang.String,Room> hashedRoomSet, java.lang.String areaName, java.lang.String calledThis)
protected static void processRoomRelinks(java.util.List<java.lang.String> reLinkTable, java.lang.String areaName, java.util.Map<java.lang.String,Room> areaHashedRoomSet, java.util.Map<java.lang.String,Room> hashedRoomSet)
protected boolean temporarilyDeleteArea(MOB mob, java.util.List<java.lang.String> reLinkTable, java.lang.String areaName)
protected static java.lang.String getAreaAuthor(java.util.List<java.lang.String> V)
protected static java.lang.String nextLine(java.util.List<java.lang.String> V)
protected static java.lang.String eatLine(java.util.List<java.lang.String> V)
protected static java.lang.String eatNextLine(java.util.List<java.lang.String> V)
protected static long getBitMask(java.lang.String str, int which)
protected static java.lang.String trimSpacesOnly(java.lang.String s)
protected static java.lang.String eatLineSquiggle(java.util.List<java.lang.String> V)
protected static boolean hasReadableContent(java.lang.String objectName)
protected static java.lang.String fixReadableContent(java.lang.String text)
protected static boolean returnAnError(Session sess, java.lang.String str, boolean compileErrors, java.util.List<java.lang.Object> commands)
protected void importCustomFiles(MOB mob, java.util.Map<java.lang.String,java.lang.String> files, java.util.Set<java.lang.String> customBother, boolean noPrompt, boolean noDelete) throws java.io.IOException
java.io.IOException
protected void importCustomObjects(MOB mob, java.util.List<CMObject> custom, java.util.Set<java.lang.String> customBother, boolean noPrompt, boolean noDelete) throws java.io.IOException
java.io.IOException
protected static java.lang.String getSpell(java.lang.String word, int i)
protected static int importNumber(java.lang.String s)
protected static void readBlocks(java.util.List<java.lang.String> buf, java.util.List<java.lang.String> areaData, java.util.List<java.lang.Object> roomData, java.util.List<java.lang.String> mobData, java.util.List<java.lang.String> resetData, java.util.List<java.lang.String> objectData, java.util.List<java.lang.String> mobProgData, java.util.List<java.lang.String> objProgData, java.util.List<java.lang.String> shopData, java.util.List<java.lang.String> specialData, java.util.List<java.lang.String> socialData, java.util.List<java.lang.String> roomProgData)
protected static void doWeapon(Weapon I, java.lang.String name, int val1, java.lang.String str1, int val2, int val3, int val4, java.lang.String str4)
public static int getDRoll(java.lang.String str)
protected static MOB getMOB(java.lang.String OfThisID, Room putInRoom, Session session, java.util.List<?> mobData, java.util.List<?> mobProgData, java.util.List<?> specialData, java.util.List<?> shopData, java.util.Map<java.lang.String,MOB> areaMOBS, java.util.Map<java.lang.String,MOB> doneMOBS, java.lang.String areaFileName, boolean compileErrors, java.util.List<java.lang.Object> commands, java.util.List<java.lang.Object> errorList)
public static Room applyRoomCodeBits(Room R, Room lastRoom, java.util.Map<Room,Room> petShops, long codeBits, boolean circleFormat)
public static boolean isBadID(java.lang.String id)
public static java.lang.String socialFix(java.lang.String str)
public boolean executeImporter(MOB mob, java.util.List<java.lang.Object> commands) throws java.io.IOException
java.io.IOException
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)
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 carrierpublic 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