public class UseAnAbility extends Object
| Modifier and Type | Method and Description |
|---|---|
static UseAnAbility |
of(Actor actor) |
<C> C |
that(Class<C> implementedInterface)
|
public static UseAnAbility of(Actor actor)
public <C> C that(Class<C> implementedInterface)
actor has an Ability that implements the Interface, return that. If
there are multiple candidate Abilities, the first one found will be returned.C - the implementation of the InterfaceimplementedInterface - the Interface class that we expect to findCopyright © 2021. All rights reserved.