Interface GoalBuilder<O extends Agent, G extends Goal<O>, B extends GoalBuilder<O,G,B>>

Type Parameters:
O - The type of agent
G - The type of goal
B - The type of builder, self-referencing
All Superinterfaces:
CopyableBuilder<G,B>, ResettableBuilder<G,B>
All Known Subinterfaces:
AttackLivingGoal.Builder, AvoidLivingGoal.Builder, FindNearestAttackableTargetGoal.Builder, LookAtGoal.Builder, LookRandomlyGoal.Builder, RandomWalkingGoal.Builder, RangedAttackAgainstAgentGoal.Builder, RunAroundLikeCrazyGoal.Builder, SwimGoal.Builder, TargetGoal.Builder<A,B>

public interface GoalBuilder<O extends Agent, G extends Goal<O>, B extends GoalBuilder<O,G,B>> extends CopyableBuilder<G,B>, ResettableBuilder<G,B>
A utility to assist in building Goals.
  • Method Details

    • build

      G build(O owner)
      Builds the Goal.
      Parameters:
      owner - The owner of the task
      Returns:
      The goal