Class ShootMultipleTask
java.lang.Object
com.deco2800.game.ai.tasks.DefaultTask
com.deco2800.game.components.tasks.ShootTask
com.deco2800.game.components.tasks.ShootMultipleTask
- All Implemented Interfaces:
PriorityTask
,Task
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.deco2800.game.ai.tasks.Task
Task.Status
-
Field Summary
Fields inherited from class com.deco2800.game.ai.tasks.DefaultTask
owner, status
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.deco2800.game.components.tasks.ShootTask
getDistanceToTarget, getPriority
Methods inherited from class com.deco2800.game.ai.tasks.DefaultTask
create, getStatus, stop
-
Constructor Details
-
ShootMultipleTask
-
-
Method Details
-
start
public void start()Description copied from interface:Task
Start running this task. This will usually be called by an AI controller. -
addTarget
Adds a target to the target list- Parameters:
target
- target to add
-
update
public void update()Description copied from interface:Task
Run one frame of the task. Similar to the update() in Components. -
isTargetVisible
protected boolean isTargetVisible()- Overrides:
isTargetVisible
in classShootTask
-