wyvern.lib.commands
Class PutCommand.PutEvent

java.lang.Object
  extended bywyvern.kernel.properties.PList
      extended bywyvern.kernel.commands.EventImpl
          extended bywyvern.kernel.commands.TargetedEvent
              extended bywyvern.lib.commands.PutCommand.PutEvent
All Implemented Interfaces:
Broadcaster, CommandEvent, PropertyList
Enclosing class:
PutCommand

public class PutCommand.PutEvent
extends TargetedEvent

This class encapsulates the parameters for a Put event.

Version:
1.0, Nov 05, 1997
Author:
Steve Yegge

Field Summary
 java.lang.String bagFullMsg_
           
protected  Bag container_
          The Bag in which we're placing the target object.
 java.lang.String dontHaveMsg_
           
 java.lang.String noArgMsg_
           
 java.lang.String noInvMsg_
           
 java.lang.String noPutMsg_
           
 java.lang.String noSuchObjMsg_
           
 java.lang.String notEnoughMsg_
           
 java.lang.String noWayMsg_
           
 java.lang.String okMsg_
           
 int PUT_DELAY
          The default time it takes to put something in a bag.
 java.lang.String wrongItemMsg_
           
 
Fields inherited from class wyvern.kernel.commands.TargetedEvent
cloneError_, location_, quantity_, target_, targetName_
 
Fields inherited from class wyvern.kernel.commands.EventImpl
agent_, appendToFile_, argString_, argStringParsed_, argv_, argvParsed_, delay_, failureMessage_, filterObjects_, filters_, handler_, map_, modified_, originalText_, playerOriginated_, redirectFile_, redirecting_, sendToAgent_, successMessage_, verb_, vetoed_, wizParsed_
 
Fields inherited from class wyvern.kernel.properties.PList
readOnly_
 
Fields inherited from interface wyvern.lib.PropertyList
PROPERTY_PACKAGE
 
Constructor Summary
PutCommand.PutEvent(java.lang.String originalText, Commandable agent)
          Constructs a new standard PutEvent.
 
Method Summary
 Bag getContainer()
          Returns the Bag we're putting the item in.
 void setContainer(Bag bag)
          Sets the container in which to place the item.
 CommandEvent veto(java.lang.String msg)
          Overrides CommandEvent.veto() - sets the delay to zero.
 
Methods inherited from class wyvern.kernel.commands.TargetedEvent
getCloneErrorMsg, getLocation, getQuantity, getTarget, getTargetName, hasTarget, isQuantified, isTargetSpecifiedByHashcode, setLocation, setQuantified, setQuantity, setTarget, setTargetName
 
Methods inherited from class wyvern.kernel.commands.EventImpl
broadcast, broadcast, broadcast, broadcast, broadcast, checkVeto, fail, filterMessage, findAllMatches, findByHashcode, findInMap, findNeighbor, findObject, findTarget, getAgent, getArgs, getArgString, getDelay, getFailureMessage, getFilterObjects, getFilters, getHandler, getMap, getOriginalText, getRedirectFile, getSuccessMessage, getVerb, hasArgs, isAppending, isModified, isMonster, isPlayer, isPlayerOriginated, isRedirecting, isSendingToAgent, isVetoed, isWizard, main, message, message, noArgs, parseArgString, parseARGV, parseVerb, profileParsing, redirectMessage, runPostHooks, runPreHooks, searchInv, searchInvAndMapNearby, searchInvAndMapUnder, searchInvByHashcode, searchMapNearby, searchMapUnder, searchMapUnderByHashcode, setAgent, setArgs, setDelay, setFailureMessage, setHandler, setMap, setModified, setOriginalText, setPlayerOriginated, setSuccessMessage, setVerb, setVeto, toString
 
Methods inherited from class wyvern.kernel.properties.PList
addProperty, addTransientProperty, adjustDoubleProperty, adjustIntProperty, adjustLongProperty, adjustTransientDoubleProperty, adjustTransientIntProperty, adjustTransientLongProperty, countLocalProperties, debugProperties, dismantlePropertyList, getDoubleProperty, getInheritedProperty, getInteger, getIntProperty, getLocalProperties, getLocalProperty, getLongProperty, getParent, getPersistentDoubleProperty, getPersistentIntProperty, getPersistentLocalProperties, getPersistentLongProperty, getPersistentProperty, getProfilingInfo, getProperties, getProperties, getPropertiesIncludingTransients, getPropertiesIncludingTransients, getProperty, getSerializableProperties, getSerializableProperty, getStringProperty, getTransientDoubleProperty, getTransientIntProperty, getTransientLongProperty, getTransientProperties, getTransientProperty, hasLocalProperty, hasPersistentProperty, hasProperty, hasTransientProperty, inheritProperty, isReadOnly, isRemoved, isTransientlyRemoved, printLocalProperties, printProperties, printProperties, printTransientProperties, removeProperty, removeTransientProperty, setDoubleProperty, setIntProperty, setLongProperty, setParent, setProperty, setReadOnly, setTransientDoubleProperty, setTransientIntProperty, setTransientLongProperty, setTransientProperty, toString, transientlyRemoveProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface wyvern.lib.PropertyList
addProperty, addTransientProperty, adjustDoubleProperty, adjustIntProperty, adjustLongProperty, adjustTransientDoubleProperty, adjustTransientIntProperty, adjustTransientLongProperty, countLocalProperties, getDoubleProperty, getInheritedProperty, getIntProperty, getLocalProperties, getLocalProperty, getLongProperty, getParent, getPersistentDoubleProperty, getPersistentIntProperty, getPersistentLocalProperties, getPersistentLongProperty, getPersistentProperty, getProperties, getProperties, getPropertiesIncludingTransients, getPropertiesIncludingTransients, getProperty, getSerializableProperties, getSerializableProperty, getStringProperty, getTransientDoubleProperty, getTransientIntProperty, getTransientLongProperty, getTransientProperties, getTransientProperty, hasLocalProperty, hasPersistentProperty, hasProperty, hasTransientProperty, inheritProperty, isReadOnly, isRemoved, isTransientlyRemoved, printLocalProperties, printProperties, printProperties, printTransientProperties, removeProperty, removeTransientProperty, setDoubleProperty, setIntProperty, setLongProperty, setParent, setProperty, setReadOnly, setTransientDoubleProperty, setTransientIntProperty, setTransientLongProperty, setTransientProperty, toString, transientlyRemoveProperty
 

Field Detail

container_

protected Bag container_
The Bag in which we're placing the target object.


dontHaveMsg_

public java.lang.String dontHaveMsg_

noInvMsg_

public java.lang.String noInvMsg_

noPutMsg_

public java.lang.String noPutMsg_

okMsg_

public java.lang.String okMsg_

noSuchObjMsg_

public java.lang.String noSuchObjMsg_

bagFullMsg_

public java.lang.String bagFullMsg_

wrongItemMsg_

public java.lang.String wrongItemMsg_

noWayMsg_

public java.lang.String noWayMsg_

notEnoughMsg_

public java.lang.String notEnoughMsg_

noArgMsg_

public java.lang.String noArgMsg_

PUT_DELAY

public final int PUT_DELAY
The default time it takes to put something in a bag.

See Also:
Constant Field Values
Constructor Detail

PutCommand.PutEvent

public PutCommand.PutEvent(java.lang.String originalText,
                           Commandable agent)
Constructs a new standard PutEvent.

Method Detail

getContainer

public Bag getContainer()
Returns the Bag we're putting the item in.


setContainer

public void setContainer(Bag bag)
Sets the container in which to place the item.


veto

public CommandEvent veto(java.lang.String msg)
Overrides CommandEvent.veto() - sets the delay to zero. If you don't want this behavior, call setVeto and setFailureMessage separately, or reset the delay after calling this method.

Specified by:
veto in interface CommandEvent
Overrides:
veto in class EventImpl