Class MazeHuntTask
java.lang.Object
com.csse3200.game.ai.tasks.DefaultTask
com.csse3200.game.minigames.maze.components.tasks.MazeHuntTask
- All Implemented Interfaces:
PriorityTask
,Task
Move to a given position, finishing when you get close enough. Requires an entity with a
PhysicsMovementComponent.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.csse3200.game.ai.tasks.Task
Task.Status
-
Field Summary
Fields inherited from class com.csse3200.game.ai.tasks.DefaultTask
owner, status
-
Constructor Summary
ConstructorsConstructorDescriptionMazeHuntTask
(Entity target, Maze maze, int priority) Initialiser for the MazeHuntTask -
Method Summary
Methods inherited from class com.csse3200.game.ai.tasks.DefaultTask
create, getStatus, setOwner
-
Constructor Details
-
MazeHuntTask
Initialiser for the MazeHuntTask- Parameters:
target
- the target to get tomaze
- the maze instancepriority
- the priority of this task
-
-
Method Details
-
start
public void start()Starts this task- Specified by:
start
in interfaceTask
- Overrides:
start
in classDefaultTask
-
update
public void update()Updates the task, updates the targets position and starts the task if it is idle- Specified by:
update
in interfaceTask
- Overrides:
update
in classDefaultTask
-
stop
public void stop()Stops this task- Specified by:
stop
in interfaceTask
- Overrides:
stop
in classDefaultTask
-
getPriority
public int getPriority()Get task priority- Specified by:
getPriority
in interfacePriorityTask
- Returns:
- the priority of the MazeHuntTask
-