- java.lang.Object
-
- textadventurelib.options.Option
-
- All Implemented Interfaces:
IOption
- Direct Known Subclasses:
PlayerModificationOption
public class Option extends Object implements IOption
- Author:
- Jeff Riggle
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IAction
action()
void
action(IAction value)
boolean
shouldTrigger(TriggerParameters data)
List<ITrigger>
triggers()
void
triggers(List<ITrigger> value)
-
-
-
Method Detail
-
shouldTrigger
public boolean shouldTrigger(TriggerParameters data)
- Specified by:
shouldTrigger
in interfaceIOption
- Parameters:
data
- The data to test against the triggers.- Returns:
- If this option should trigger.
-
action
public IAction action()
-
-