Class WalkToBehavior

java.lang.Object
org.baseagent.behaviors.LifecycleBehavior
org.baseagent.behaviors.grid.WalkToBehavior
All Implemented Interfaces:
Behavior
Direct Known Subclasses:
RandomWanderBehavior

public class WalkToBehavior extends LifecycleBehavior
  • Constructor Details

    • WalkToBehavior

      public WalkToBehavior()
    • WalkToBehavior

      public WalkToBehavior(GridAgent agent, int destinationX, int destinationY, double speed)
  • Method Details

    • startBehavior

      public void startBehavior(Agent agent)
      Overrides:
      startBehavior in class LifecycleBehavior
    • executeBehavior

      public void executeBehavior(Agent agent)
    • addDestination

      public void addDestination(GridAgent gridAgent, int destinationX, int destinationY)
    • setSpeed

      public void setSpeed(double speed)
    • getCurrentDestination

      public GridPosition getCurrentDestination()
    • getSpeed

      public double getSpeed()