org.cjncreations.csi
Class StartCellEventProcessor

java.lang.Object
  extended by org.dimx.CustEventProcessor
      extended by org.cjncreations.csi.CSIEventProcessor
          extended by org.cjncreations.csi.StartCellEventProcessor
All Implemented Interfaces:
IEventProcessor

public class StartCellEventProcessor
extends CSIEventProcessor


Field Summary
 
Fields inherited from class org.cjncreations.csi.CSIEventProcessor
PROP_ASKED, PROP_CARDKIT, PROP_CLEARCHAT, PROP_CONGRATS, PROP_GOODED, PROP_HEARD, PROP_HELPLOOK, PROP_HELPPROMPT, PROP_ITEMPROMPT, PROP_KEY, PROP_KEYUSED, PROP_LOOKED, PROP_PLAYERKIT, PROP_PRAISED, PROP_REMINDER, PROP_ROOMCOUNT, PROP_ROOMLOOKED, PROP_ROOMPROMPT, PROP_ROOMSEARCHED, PROP_SAYPROMPT, PROP_TICK, PROP_TOLD
 
Fields inherited from class org.dimx.CustEventProcessor
_world
 
Constructor Summary
StartCellEventProcessor()
           
 
Method Summary
protected  void _firstTableUnlock()
           
protected  boolean _preQualUseLockUnlock()
           
protected  void enterCell()
           
protected  boolean onDropped(boolean defaultResult, boolean mustExist)
          onUseWith for the key
protected  boolean onLock(boolean defaultResult, boolean mustExist)
          onLock for the key
protected  boolean onLook(boolean defaultResult, boolean mustExist)
          Triggered when an object is looked at Applies to: ITEM, CHARACTER, ROOM OWNER: Object being looked at AGENT: Character looking TARGET: unused Return value: True by default.
protected  boolean onLoose(boolean defaultResult, boolean mustExist)
          Player is exiting room or logging off...
protected  boolean onReceive(boolean defaultResult, boolean mustExist)
           
protected  boolean onUnlock(boolean defaultResult, boolean mustExist)
          onUnlock for the key
protected  boolean onUseWith(boolean defaultResult, boolean mustExist)
          onUseWith for the key
 
Methods inherited from class org.cjncreations.csi.CSIEventProcessor
createSimpleContainer, createSimpleItem, csimsg, displayItems, execute, fireEvent_t, fireEvent, getCharactersIn, getItemsIn, getItemsOfType, getItemsOfType, getNamedCharacterIn, getPlayersIn, hilite, incrementProperty, kill, onClose, onConsoleCommand, onDie, onEnter, onExit, onGive, onHear, onHide, onLiving, onLooseItem, onNew, onOpen, onPicked, onReceiveItem, onRestore, onSave, onSaveInfo, onSearch, onSpeechFinish, onStart, onTick, onUse, processEvent, randMsg, resetTick, setEventAssets, setEventHandler, setWorld
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartCellEventProcessor

public StartCellEventProcessor()
Method Detail

onLook

protected boolean onLook(boolean defaultResult,
                         boolean mustExist)
                  throws DimxException
Description copied from class: CSIEventProcessor
Triggered when an object is looked at Applies to: ITEM, CHARACTER, ROOM OWNER: Object being looked at AGENT: Character looking TARGET: unused Return value: True by default. If the result is set to False, then the action is cancelled. Note 1: If you just wish to skip the focusing effect, just set the player’s .__clearfocus property to True. Note 2: The individual OBJECT.onLook event triggers first than the generic onLook EVENT. If the individual OBJECT.onLook exists and if its return value is not explicitelty zero, then the event is considered as handled and the generic onLook event is not triggered. Note 3: With difference regards all other system events, this event receives user input in the input( ) set. Ideas for use: Characters speaking or talking to players when they look at them, giving hints on the game.

Overrides:
onLook in class CSIEventProcessor
Parameters:
defaultResult -
mustExist -
Returns:
defaultResult or throws DimxException if mustExist is true.
Throws:
DimxException

onLoose

protected boolean onLoose(boolean defaultResult,
                          boolean mustExist)
                   throws DimxException
Player is exiting room or logging off...

Overrides:
onLoose in class CSIEventProcessor
Parameters:
defaultResult -
mustExist -
Returns:
defaultResult or throws DimxException if mustExist is true.
Throws:
DimxException

onReceive

protected boolean onReceive(boolean defaultResult,
                            boolean mustExist)
                     throws DimxException
Overrides:
onReceive in class CSIEventProcessor
Parameters:
defaultResult -
mustExist -
Returns:
defaultResult or throws DimxException if mustExist is true.
Throws:
DimxException

_preQualUseLockUnlock

protected boolean _preQualUseLockUnlock()
                                 throws DimxException
Returns:
false if use, lock, or unlock should NOT process because it is not "the key", or the target is NOT the table.
Throws:
DimxException

_firstTableUnlock

protected void _firstTableUnlock()
                          throws DimxException
Throws:
DimxException

onUseWith

protected boolean onUseWith(boolean defaultResult,
                            boolean mustExist)
                     throws DimxException
onUseWith for the key

Overrides:
onUseWith in class CSIEventProcessor
Parameters:
defaultResult -
mustExist -
Returns:
defaultResult or throws DimxException if mustExist is true.
Throws:
DimxException

onUnlock

protected boolean onUnlock(boolean defaultResult,
                           boolean mustExist)
                    throws DimxException
onUnlock for the key

Overrides:
onUnlock in class CSIEventProcessor
Parameters:
defaultResult -
mustExist -
Returns:
defaultResult or throws DimxException if mustExist is true.
Throws:
DimxException

onLock

protected boolean onLock(boolean defaultResult,
                         boolean mustExist)
                  throws DimxException
onLock for the key

Overrides:
onLock in class CSIEventProcessor
Parameters:
defaultResult -
mustExist -
Returns:
defaultResult or throws DimxException if mustExist is true.
Throws:
DimxException

onDropped

protected boolean onDropped(boolean defaultResult,
                            boolean mustExist)
                     throws DimxException
onUseWith for the key

Overrides:
onDropped in class CSIEventProcessor
Parameters:
defaultResult -
mustExist -
Returns:
defaultResult or throws DimxException if mustExist is true.
Throws:
DimxException

enterCell

protected void enterCell()
                  throws DimxException
Throws:
DimxException