public abstract class ConditionalPerformable extends Object implements Performable, IsHidden
Modifier and Type | Field and Description |
---|---|
protected Map<Boolean,Performable[]> |
outcomeToPerform |
Constructor and Description |
---|
ConditionalPerformable() |
Modifier and Type | Method and Description |
---|---|
ConditionalPerformable |
andIfSo(Performable... taskToPerform) |
protected abstract Boolean |
evaluatedConditionFor(Actor actor) |
ConditionalPerformable |
otherwise(Performable... taskToPerform) |
<T extends Actor> |
performAs(T actor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
then
protected final Map<Boolean,Performable[]> outcomeToPerform
public ConditionalPerformable andIfSo(Performable... taskToPerform)
public ConditionalPerformable otherwise(Performable... taskToPerform)
public <T extends Actor> void performAs(T actor)
performAs
in interface Performable
Copyright © 2022. All rights reserved.