com.planet_ink.coffee_mud.Commands
Class Create

java.lang.Object
  extended by com.planet_ink.coffee_mud.Commands.StdCommand
      extended by com.planet_ink.coffee_mud.Commands.Create
All Implemented Interfaces:
Command, CMObject, java.lang.Cloneable, java.lang.Comparable<CMObject>

public class Create
extends StdCommand


Field Summary
 
Fields inherited from class com.planet_ink.coffee_mud.Commands.StdCommand
ID
 
Fields inherited from interface com.planet_ink.coffee_mud.Commands.interfaces.Command
METAFLAG_AS, METAFLAG_FORCED, METAFLAG_MPFORCED, METAFLAG_ORDER, METAFLAG_POSSESSED, METAFLAG_SNOOPED
 
Constructor Summary
Create()
           
 
Method Summary
 void abilities(MOB mob, java.util.Vector commands)
           
 void areas(MOB mob, java.util.Vector commands)
           
 boolean canBeOrdered()
          Whether the a group leader or charmer can order their followers to do this command.
 void classes(MOB mob, java.util.Vector commands)
           
 void components(MOB mob, java.util.Vector commands)
           
 boolean errorOut(MOB mob)
           
 boolean execute(MOB mob, java.util.Vector commands, int metaFlags)
          This method actually performs the command, when the given parsed set of command-line words.
 void exits(MOB mob, java.util.Vector commands)
           
 void expertises(MOB mob, java.util.Vector commands)
           
 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.
 Item getNewCatalogItem(java.lang.String itemID)
           
 MOB getNewCatalogMob(java.lang.String mobID)
           
 void items(MOB mob, java.util.Vector commands)
           
 void mobs(MOB mob, java.util.Vector commands)
           
 void players(MOB mob, java.util.Vector commands)
           
 void polls(MOB mob, java.util.Vector commands)
           
 void races(MOB mob, java.util.Vector commands)
           
 void rooms(MOB mob, java.util.Vector commands)
           
 boolean securityCheck(MOB mob)
          Whether this command is available to the given player
 void socials(MOB mob, java.util.Vector commands)
           
 void titles(MOB mob, java.util.Vector commands)
           
 
Methods inherited from class com.planet_ink.coffee_mud.Commands.StdCommand
actionsCost, combatActionsCost, compareTo, copyOf, ID, initializeClass, newInstance, preExecute, staffCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Create

public Create()
Method Detail

getAccessWords

public java.lang.String[] getAccessWords()
Description copied from interface: Command
Returns the set of command words, with the most public one first, that are entered by the user to initiate this command.

Specified by:
getAccessWords in interface Command
Overrides:
getAccessWords in class StdCommand
Returns:
the set of command words that the user enters

exits

public void exits(MOB mob,
                  java.util.Vector commands)
           throws java.io.IOException
Throws:
java.io.IOException

polls

public void polls(MOB mob,
                  java.util.Vector commands)

items

public void items(MOB mob,
                  java.util.Vector commands)
           throws java.io.IOException
Throws:
java.io.IOException

players

public void players(MOB mob,
                    java.util.Vector commands)
             throws java.io.IOException
Throws:
java.io.IOException

rooms

public void rooms(MOB mob,
                  java.util.Vector commands)

getNewCatalogMob

public MOB getNewCatalogMob(java.lang.String mobID)

getNewCatalogItem

public Item getNewCatalogItem(java.lang.String itemID)

mobs

public void mobs(MOB mob,
                 java.util.Vector commands)
          throws java.io.IOException
Throws:
java.io.IOException

races

public void races(MOB mob,
                  java.util.Vector commands)
           throws java.io.IOException
Throws:
java.io.IOException

areas

public void areas(MOB mob,
                  java.util.Vector commands)
           throws java.io.IOException
Throws:
java.io.IOException

components

public void components(MOB mob,
                       java.util.Vector commands)
                throws java.io.IOException
Throws:
java.io.IOException

expertises

public void expertises(MOB mob,
                       java.util.Vector commands)

titles

public void titles(MOB mob,
                   java.util.Vector commands)

abilities

public void abilities(MOB mob,
                      java.util.Vector commands)
               throws java.io.IOException
Throws:
java.io.IOException

classes

public void classes(MOB mob,
                    java.util.Vector commands)
             throws java.io.IOException
Throws:
java.io.IOException

socials

public void socials(MOB mob,
                    java.util.Vector commands)
             throws java.io.IOException
Throws:
java.io.IOException

errorOut

public boolean errorOut(MOB mob)

execute

public boolean execute(MOB mob,
                       java.util.Vector commands,
                       int metaFlags)
                throws java.io.IOException
Description copied from interface: Command
This method actually performs the command, when the given parsed set of command-line words. The commands list is almost always the set of strings, starting with the access word that triggered the command. Some commands have custom APIs however, that allow almost anything to be in the commands list, or even for the commands to be null. This method is not allowed to be called until the player or mob has satisfied the actionsCost requirements and the securityCheck

Specified by:
execute in interface Command
Overrides:
execute in class StdCommand
Parameters:
mob - the mob or player issueing the command
commands - usually the command words and parameters; a set of strings
metaFlags - flags denoting how the command is being executed
Returns:
whether the command was successfully executed. Is almost meaningless.
Throws:
java.io.IOException - usually means the player has dropped carrier
See Also:
Command.actionsCost(MOB, Vector), Command.securityCheck(MOB)

canBeOrdered

public boolean canBeOrdered()
Description copied from interface: Command
Whether the a group leader or charmer can order their followers to do this command.

Specified by:
canBeOrdered in interface Command
Overrides:
canBeOrdered in class StdCommand
Returns:
whether this command can be ordered.

securityCheck

public boolean securityCheck(MOB mob)
Description copied from interface: Command
Whether this command is available to the given player

Specified by:
securityCheck in interface Command
Overrides:
securityCheck in class StdCommand
Parameters:
mob - the player mob who might not even know about this command
Returns:
true if the command is available, and false if it is unknown