use of eidolons.game.module.dungeoncrawl.ai.GuardAi in project Eidolons by IDemiurge.
the class BehaviorMaster method getBehavior.
private AiBehavior getBehavior(UnitAI ai, AI_BEHAVIOR_MODE type) {
AiBehavior behavior = behaviorMap.get(type);
if (behavior != null) {
return behavior;
}
switch(type) {
case WANDER:
behavior = new WanderAi();
break;
case AMBUSH:
break;
case AGGRO:
break;
case STALK:
break;
case PATROL:
break;
case GUARD:
behavior = new GuardAi();
break;
}
behaviorMap.put(type, behavior);
// preCheck unit is viable?
return behavior;
}
Aggregations