@Singleton public class SreDynamicSkillProvider extends Object implements DynamicSkillProvider
EMPTY_PROVIDER
Constructor and Description |
---|
SreDynamicSkillProvider(injector : com.google.inject.Injector)
Constructor.
|
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.
|
@Inject
public new
(injector : com.google.inject.Injector)
injector
- the injector.@Pure
public def
createSkill(capacity : Class<? extends Capacity>) : Skill
DynamicSkillProvider
createSkill
in interface DynamicSkillProvider
capacity
- the type of the capacity to retrieve.null
if none.@Pure
public def
isSkillProviding(capacity : Class<? extends Capacity>) : boolean
DynamicSkillProvider
isSkillProviding
in interface 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.