Class ScannerTask
java.lang.Object
com.csse3200.game.ai.tasks.DefaultTask
com.csse3200.game.components.tasks.scanner.ScannerTask
- All Implemented Interfaces:
PriorityTask,Task
ScannerTask implements the behaviour of GapScannerEntities that detect the
conditions to trigger engineer spawning, i.e., No towers, no engineers, mobs within
a certain distance.
-
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
Constructors -
Method Summary
Methods inherited from class com.csse3200.game.ai.tasks.DefaultTask
create, getStatus, stop
-
Constructor Details
-
ScannerTask
public ScannerTask()ScannerTask Constructor
-
-
Method Details
-
start
public void start()Start method for the ScannerTask- Specified by:
startin interfaceTask- Overrides:
startin classDefaultTask
-
update
public void update()Update method for the scanner task. Implements the scanning and spawning logic for populating the game area with engineers.- Specified by:
updatein interfaceTask- Overrides:
updatein classDefaultTask
-
getPriority
public int getPriority()Return the priority of the task.- Specified by:
getPriorityin interfacePriorityTask- Returns:
- the default priority of this task (a fixed value - no other tasks to run)
-