Abilities, Above, Account, Achievements, Activate, Affect, AFK, Aft, After, AHelp, Alias, Announce, ANSI, Areas, As, Assist, ASync, At, ATopics, Auction, AutoAffects, AutoAssist, AutoDraw, AutoExits, Autoforward, AutoGold, AutoGuard, AutoImprovement, AutoInvoke, AutoLoot, AutoMap, AutoMelee, AutoNotify, AutoRun, AutoWeather, Back, Ban, Beacon, Below, Bid, Boot, Borrow, Brief, Buy, CalendarCmd, Catalog, Channel, Channels, Chants, ChanWho, CharGen, ClanAccept, ClanApply, ClanAssign, ClanCreate, ClanDeclare, ClanDetails, ClanDonateSet, ClanDues, ClanExile, ClanHomeSet, ClanKills, ClanList, ClanMorgueSet, ClanMOTD, ClanPremise, ClanPVPKills, ClanQual, ClanReject, ClanResign, ClanTax, ClanVote, ClanWho, Cloak, Close, ColorSet, CommandJournal, Commands, Compare, Compress, Config, Consider, Copy, Crawl, Create, Credits, Deactivate, DeferCmd, Deities, Deposit, Description, Destroy, Deviations, Dig, Disembark, Dismount, Display, Down, Draw, Dress, DrinkCmd, Drop, Duel, DumpFile, East, Eat, Email, Emote, Empty, Enter, Equipment, Every, Examine, Exits, Experience, Expertises, Expire, Export, FactionList, Feed, Fill, Fire, Flee, Follow, Foreward, Formation, Friends, Gain, Gait, GConsider, Generate, Get, Give, GModify, Go, Goto, Group, GTell, Help, HelpList, Hire, History, Hold, I3Cmd, Ignore, IMC2, Import, Inventory, JConsole, JRun, Kill, Knock, Languages, Learn, Leave, Left, LineWrap, Link, ListCmd, Load, Lock, Logoff, Look, Mend, Merge, MetaMsgCommand, Modify, Mood, MOTD, Mount, MPCommand, MPRun, MXP, NoANSI, NoBattleSpam, NoChannel, NoFollow, NOMXP, NoPurge, North, Northeast, Northwest, NoSell, NoSounds, NoTeach, Open, Order, OutFit, Package, PageBreak, Password, Pause, PlayerKill, PollCmd, Poof, Portside, Pose, Possess, Pour, Powers, Practice, Prayers, PreviousCmd, Prompt, Pull, Purge, Push, Put, Qualify, Questwins, Quiet, Quit, Read, Rebuke, Remort, Remove, Replay, Reply, Report, Reset, Restring, Retire, Right, Rules, Run, Save, Say, Score, Sell, Serve, SetCmd, Sheath, Shell, Shutdown, Sit, Skills, Sleep, Sniff, Snoop, SocialsCmd, Songs, Sounds, South, Southeast, Southwest, Spells, Split, Stand, Starboard, Stat, StdCommand, Subscribe, Switch, SysMsgs, Take, Teach, Tell, Template, Test, Throw, TickTock, Time, Title, Top, Topics, TrailTo, Train, Transfer, TypeCmd, Undress, UnLink, Unload, Unlock, Up, Value, Vassals, Ver, View, Visible, Wake, Wealth, Wear, Weather, West, Where, Whisper, Who, WhoIs, Wield, WillQualify, Wimpy, Withdraw, WizEmote, WizInv, WizList, Worth, Xml, Yellpublic interface Command extends CMObject
idConverter| Modifier and Type | Method | Description |
|---|---|---|
double |
actionsCost(MOB mob,
java.util.List<java.lang.String> cmds) |
Returns the number of actions required to completely
activate this command.
|
boolean |
canBeCancelled() |
Returns true if the command will not be executed if all are true:
1.
|
boolean |
canBeOrdered() |
Whether a group leader or charmer can order their followers
to do this command.
|
double |
checkedActionsCost(MOB mob,
java.util.List<java.lang.String> cmds) |
Returns the number of actions required to completely
activate this command.
|
double |
combatActionsCost(MOB mob,
java.util.List<java.lang.String> cmds) |
Returns the number of actions required to completely
activate 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.
|
boolean |
preExecute(MOB mob,
java.util.List<java.lang.String> commands,
int metaFlags,
int secondsElapsed,
double actionsRemaining) |
This method is only called when the mob invoking this command
does not have enough actions to complete it immediately.
|
boolean |
putInCommandlist() |
Returns whether this commands`s access words should be
places in the master list of commands.
|
boolean |
securityCheck(MOB mob) |
Whether this command is available to the given player
|
copyOf, ID, initializeClass, name, newInstancejava.lang.String[] getAccessWords()
boolean putInCommandlist()
getAccessWords()double actionsCost(MOB mob, java.util.List<java.lang.String> cmds)
mob - the mob executing the command, if anycmds - the parameters to be passed to the command, if anycombatActionsCost(MOB, List),
checkedActionsCost(MOB, List)double combatActionsCost(MOB mob, java.util.List<java.lang.String> cmds)
mob - the mob executing the command, if anycmds - the parameters to be passed to the command, if anyactionsCost(MOB, List),
checkedActionsCost(MOB, List)double checkedActionsCost(MOB mob, java.util.List<java.lang.String> cmds)
mob - the mob executing the command, if anycmds - the parameters to be passed to the command, if anycombatActionsCost(MOB, List),
actionsCost(MOB, List)boolean canBeOrdered()
boolean securityCheck(MOB mob)
mob - the player mob who might not even know about this commandboolean execute(MOB mob, java.util.List<java.lang.String> commands, int metaFlags) throws java.io.IOException
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 carrieractionsCost(MOB, List),
securityCheck(MOB)boolean preExecute(MOB mob, java.util.List<java.lang.String> commands, int metaFlags, int secondsElapsed, double actionsRemaining) throws java.io.IOException
mob - the player or mob invoking the commandcommands - the parameters entered for the command (including the trigger word)metaFlags - flags denoting how the command is being executedsecondsElapsed - 0 at first, and increments every secondactionsRemaining - number of free actions the player is defficient.java.io.IOException - usually means the player has dropped carrierexecute(MOB, List, int),
canBeCancelled()boolean canBeCancelled()
preExecute(MOB, List, int, int, double)java.lang.Object executeInternal(MOB mob, int metaFlags, java.lang.Object... args) throws java.io.IOException
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 carrier