org.cjncreations.csi
Class MinionEventProcessor
java.lang.Object
org.dimx.CustEventProcessor
org.cjncreations.csi.CSIEventProcessor
org.cjncreations.csi.DefaultCSIEventProcessor
org.cjncreations.csi.MinionEventProcessor
- All Implemented Interfaces:
- IEventProcessor
public class MinionEventProcessor
- extends DefaultCSIEventProcessor
| 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 |
|
Method Summary |
protected boolean |
onHear(boolean defaultResult,
boolean mustExist)
|
protected boolean |
onLiving(boolean defaultResult,
boolean mustExist)
|
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. |
| 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, onDropped, onEnter, onExit, onGive, onHide, onLoose, onLooseItem, onOpen, onPicked, onReceiveItem, onRestore, onSave, onSaveInfo, onSearch, onSpeechFinish, onStart, onTick, onUse, onUseWith, processEvent, randMsg, resetTick, setEventAssets, setEventHandler, setWorld |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_NOTEREAD
public static final java.lang.String PROP_NOTEREAD
- See Also:
- Constant Field Values
MinionEventProcessor
public MinionEventProcessor()
onLiving
protected boolean onLiving(boolean defaultResult,
boolean mustExist)
throws DimxException
- Overrides:
onLiving in class CSIEventProcessor
- Parameters:
defaultResult - mustExist -
- Returns:
- defaultResult or throws DimxException if mustExist is true.
- Throws:
DimxException
onHear
protected boolean onHear(boolean defaultResult,
boolean mustExist)
throws DimxException
- Overrides:
onHear in class CSIEventProcessor
- Parameters:
defaultResult - mustExist -
- Returns:
- defaultResult or throws DimxException if mustExist is true.
- Throws:
DimxException
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