public interface AiHandler
| Modifier and Type | Method and Description |
|---|---|
AiModule |
defaultAiFor(EntityType type)
Returns the AI Module that is the default for a certain type of entity
|
AiModule |
nativeAIFor(EntityType type)
Returns the server's implementation of the AI for a given entity type
|
void |
setDefaultAiFor(EntityType type,
AiModule module)
Sets the AI for this entity type, used to provide a separate AiModule for
Entities
|
AiModule defaultAiFor(EntityType type)
void setDefaultAiFor(EntityType type, AiModule module)
Entities of this type in the world will immediately start using this
AiModule, even if they were
created before this was set.
type - the type of entity to replace the AI formodule - the new AiModule to useAiModule nativeAIFor(EntityType type)
type - the type of entity to request the AI forCopyright © 2016. All rights reserved.