Class DeadTask
java.lang.Object
com.deco2800.game.ai.tasks.DefaultTask
com.deco2800.game.components.tasks.DeadTask
- 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.ai.tasks.DefaultTask
create, getStatus, stop
-
Constructor Details
-
DeadTask
Create DeadTask- Parameters:
target- the target of this entitypriority- the priority of this task
-
-
Method Details
-
start
public void start()Start this task- Specified by:
startin interfaceTask- Overrides:
startin classDefaultTask
-
update
public void update()Update this task- Specified by:
updatein interfaceTask- Overrides:
updatein classDefaultTask
-
getPriority
public int getPriority()Get the priority of this task- Specified by:
getPriorityin interfacePriorityTask- Returns:
- the priority of this task
-