public interface DynamicSkillProvider
Modifier and Type | Field and Description |
---|---|
static DynamicSkillProvider |
EMPTY_PROVIDER
A provider that provides nothing.
|
Modifier and Type | Method and Description |
---|---|
Skill |
createSkill(capacity : Class<? extends Capacity>)
Create the built-in skill that corresponds to the given capacity into the given container.
|
boolean |
isSkillProviding(capacity : Class<? extends Capacity>)
Replies if this provider could provide the built-in skill that corresponds to the given capacity.
|
static val
EMPTY_PROVIDER : DynamicSkillProvider
DynamicSkillProvider
@Pure
def
createSkill(capacity : Class<? extends Capacity>) : Skill
DynamicSkillProvider
capacity
- the type of the capacity to retrieve.null
if none.@Pure
def
isSkillProviding(capacity : Class<? extends Capacity>) : boolean
DynamicSkillProvider
capacity
- the type of the capacity to retrieve.true
if an instance of skill could be provided for the given capacity.Copyright © 2021 the original authors or authors.