java.lang.Object
org.bzdev.drama.common.ConditionInfo
Auxiliary data about a condition change.
Several classes (actors in particular) contain two methods
named onConditionChange(Condition, ConditionMode, SimObject) and
onConditionChange(Map<Condition,ConditionInfo>). The default
implementation of the latter calls the former method, obtaining the
former method's second and third arguments from an instance of
ConditionInfo.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMode()
Get the condition mode for the change.Get the source of a change.
-
Constructor Details
-
ConditionInfo
Constructor.- Parameters:
mode
- the mode for a condition changesource
- the source for a condition change
-
-
Method Details
-
getMode
Get the condition mode for the change.- Returns:
- the condition mode
-
getSource
Get the source of a change.- Returns:
- the source
-