Alligator
, AngryCitizen
, Ape
, Assassin
, Beaver
, Bee
, BlackBear
, BlackDragon
, BlueDragon
, BrassDragon
, BronzeDragon
, BrownBear
, BrownSnake
, Buck
, Buffalo
, Bugbear
, Bull
, Cat
, Centaur
, Centipede
, Cheetah
, Chicken
, Chimp
, Citizen
, Cobra
, CombatDummy
, CommonBat
, CopperDragon
, Cougar
, Cow
, Coyote
, Crocodile
, Deer
, DireWolf
, Doe
, Dog
, Dolphin
, Doppleganger
, Dragon
, DrowElf
, DrowPriestess
, DrowWarrior
, DrowWizard
, Duck
, Elephant
, Falcon
, FireGiant
, FlyingInsect
, Fox
, Frog
, FrostGiant
, GardenSnake
, GenAuctioneer
, GenBanker
, GenCow
, GenDeity
, GenHorse
, GenLibrarian
, GenMob
, GenPostman
, GenRideable
, GenRideableUndead
, GenShopkeeper
, GenUndead
, GiantBat
, GiantScorpion
, Gnoll
, Goat
, GoatDoe
, Goblin
, GoldDragon
, Gorilla
, GreenDragon
, Hawk
, HeavenlyServent
, HillGiant
, Hornet
, Horse
, InvisibleStalker
, Jaguar
, Kitten
, LargeBat
, Lion
, Lizard
, LizardMan
, LizardManShaman
, Minotaur
, Monkey
, MountainLion
, Mouse
, Naga
, Ogre
, Orc
, Owl
, Panther
, Parakeet
, Pegasus
, PegasusGreater
, Penguin
, Pig
, Puppy
, Python
, Rabbit
, Rat
, Rattlesnake
, Raven
, RedDragon
, Rooster
, Scorpion
, Seal
, Shark
, Sheep
, SilverDragon
, Skeleton
, Snake
, Spider
, Squirrel
, StdAuctioneer
, StdBanker
, StdDeity
, StdFactoryMOB
, StdLibrarian
, StdMOB
, StdMobWrapper
, StdPostman
, StdRideable
, StdRideableWrapper
, StdShopKeeper
, StoneGiant
, StoneGolem
, Swordfish
, Teacher
, Tiger
, Toad
, Troll
, Turtle
, UmberHulk
, Undead
, Vulture
, Walrus
, Whale
, WhiteBear
, WhiteDragon
, WildEagle
, Wolf
, Wolverine
, Worm
, Wyvern
, Zombie
public interface MUDCmdProcessor
Modifier and Type | Field | Description |
---|---|---|
static int |
METAFLAG_AS |
constant mask for the metaflags parameter for execute and preexecute, means being forced with AS
|
static int |
METAFLAG_ASMESSAGE |
constant mask for the metaflags parameter for execute and preexecute, means being a meta-command
|
static int |
METAFLAG_FORCED |
constant mask for the metaflags parameter for execute and preexecute, means being forced with spells
|
static int |
METAFLAG_INORDER |
constant mask for the metaflags parameter for execute and preexecute, means always after prev command
|
static int |
METAFLAG_MPFORCED |
constant mask for the metaflags parameter for execute and preexecute, means being mpforced
|
static int |
METAFLAG_ORDER |
constant mask for the metaflags parameter for execute and preexecute, means being ordered
|
static int |
METAFLAG_POSSESSED |
constant mask for the metaflags parameter for execute and preexecute, means being possessed
|
static int |
METAFLAG_QUIETLY |
constant mask for the metaflags parameter for execute and preexecute, means to do it quietly, w/o visible msgs
|
static int |
METAFLAG_REVERSED |
constant mask for the metaflags parameter for execute and preexecute, means to try to reverse the command effect
|
static int |
METAFLAG_SNOOPED |
constant mask for the metaflags parameter for execute and preexecute, means being snooped
|
Modifier and Type | Method | Description |
---|---|---|
double |
actions() |
Returns the number of action points that this processor
has to spend towards performing any commands, skills,
or whatever needs action points to be spent on them.
|
void |
clearCommandQueue() |
Cancels and empties the command que of this processor.
|
int |
commandQueSize() |
Returns the number of commands on this processors que
|
boolean |
dequeCommand() |
If this processor has enough action points to perform the top command on the que,
then this method will execute that action.
|
void |
doCommand(java.util.List<java.lang.String> commands,
int metaFlags) |
Forces this processor to parse the given command string tokens,
determine a command to execute, and then execute it,
regardless of whether there are any action points
remaining.
|
void |
enqueCommand(java.util.List<java.lang.String> commands,
int metaFlags,
double actionCost) |
Parses the given command string tokens to determine what kind of command is
to be executed, and depending on how many actions the player has remaining
this tick, either executes the command or puts it on the que for automatic
execution once sufficient actions are available.
|
void |
enqueCommands(java.util.List<java.util.List<java.lang.String>> commands,
int metaFlags) |
Parses the given commands string tokens to determine what kind of commands are
to be executed, and depending on how many actions the player has remaining
this tick, either executes the commands or puts them on the que for automatic
execution once sufficient actions are available.
|
Pair<java.lang.Object,java.util.List<java.lang.String>> |
getTopCommand() |
Returns the command at the top of this processors que, which
might be in an action wait state.
|
void |
prequeCommand(java.util.List<java.lang.String> commands,
int metaFlags,
double actionCost) |
Parses the given command string tokens to determine what kind of command is
to be executed, and depending on how many actions the player has remaining
this tick, either executes the command or puts it on the que for automatic
execution once sufficient actions are available.
|
void |
prequeCommands(java.util.List<java.util.List<java.lang.String>> commands,
int metaFlags) |
Parses the given command string tokens to determine what kind of command is
to be executed, and depending on how many actions the player has remaining
this tick, either executes the command or puts it on the que for automatic
execution once sufficient actions are available.
|
void |
setActions(double remain) |
Sets the number of action points that this processor
has to spend towards performing any commands, skills,
or whatever needs action points to be spent on them.
|
static final int METAFLAG_MPFORCED
static final int METAFLAG_ORDER
static final int METAFLAG_POSSESSED
static final int METAFLAG_SNOOPED
static final int METAFLAG_AS
static final int METAFLAG_FORCED
static final int METAFLAG_ASMESSAGE
static final int METAFLAG_INORDER
static final int METAFLAG_REVERSED
static final int METAFLAG_QUIETLY
void enqueCommand(java.util.List<java.lang.String> commands, int metaFlags, double actionCost)
commands
- the parsed command string tokensmetaFlags
- meta-command flags to send to the command, if anyactionCost
- either 0 to let the action object decide, or an override costdequeCommand()
,
clearCommandQueue()
,
doCommand(List, int)
,
getTopCommand()
,
actions()
void enqueCommands(java.util.List<java.util.List<java.lang.String>> commands, int metaFlags)
commands
- the parsed commands string tokensmetaFlags
- meta-command flags to send to the command, if anydequeCommand()
,
clearCommandQueue()
,
doCommand(List, int)
,
getTopCommand()
,
actions()
Pair<java.lang.Object,java.util.List<java.lang.String>> getTopCommand()
dequeCommand()
,
doCommand(List, int)
void prequeCommand(java.util.List<java.lang.String> commands, int metaFlags, double actionCost)
commands
- the parsed command string tokensmetaFlags
- meta-command flags to send to the command, if anyactionCost
- either 0 to let the action object decide, or an override costdequeCommand()
,
clearCommandQueue()
,
getTopCommand()
,
doCommand(List, int)
,
actions()
void prequeCommands(java.util.List<java.util.List<java.lang.String>> commands, int metaFlags)
commands
- the parsed command string tokensmetaFlags
- meta-command flags to send to the command, if anydequeCommand()
,
clearCommandQueue()
,
getTopCommand()
,
doCommand(List, int)
boolean dequeCommand()
enqueCommand(List, int, double)
,
clearCommandQueue()
,
doCommand(List, int)
,
commandQueSize()
,
actions()
void clearCommandQueue()
int commandQueSize()
dequeCommand()
,
clearCommandQueue()
,
doCommand(List, int)
,
getTopCommand()
,
enqueCommand(List, int, double)
,
actions()
void doCommand(java.util.List<java.lang.String> commands, int metaFlags)
commands
- the command string tokensmetaFlags
- any meta-command flagsdequeCommand()
,
clearCommandQueue()
,
commandQueSize()
,
enqueCommand(List, int, double)
,
actions()
double actions()
enqueCommand(List, int, double)
,
setActions(double)
void setActions(double remain)
remain
- the number of action pointsenqueCommand(List, int, double)
,
actions()