Package com.csse3200.game.ai.tasks
Interface Task
- All Known Subinterfaces:
PriorityTask
- All Known Implementing Classes:
BombshipCombatTask
,BombshipMovementTask
,BombshipWaitTask
,BombshipWanderTask
,ChaseTask
,CurrencyTask
,DefaultTask
,DemonBossTask
,DroidCombatTask
,EngineerCombatTask
,FinalBossMovementTask
,FireTowerCombatTask
,FireworksTowerCombatTask
,HumanMovementTask
,HumanWaitTask
,HumanWanderTask
,IceBabyTask
,MobAttackTask
,MobBossDeathTask
,MobDeathTask
,MobDodgeTask
,MobMeleeAttackTask
,MobRangedAttackTask
,MobShootTask
,MobWanderTask
,MovementTask
,MoveToMiddleTask
,PatrickDeathTask
,PatrickTask
,PatrickTeleportTask
,PierceTowerCombatTask
,RangeBossTask
,RicochetTowerCombatTask
,ScannerTask
,ShootTask
,SlimeyBoyTask
,SpawnWaveTask
,StunTowerCombatTask
,TNTTowerCombatTask
,TowerCombatTask
,TrajectTask
,WaitTask
,WallTowerDestructionTask
,WaveTask
public interface Task
An AI task can be started and stopped at any time. When updating, the task can succeed or fail.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
create
(TaskRunner taskRunner) Create the task and attach it to the task runner.Get the current status of the task.void
start()
Start running this task.void
stop()
Stop the task immediately.void
update()
Run one frame of the task.
-
Method Details
-
create
Create the task and attach it to the task runner.- Parameters:
taskRunner
- Task runner to attach to
-
start
void start()Start running this task. This will usually be called by an AI controller. -
update
void update()Run one frame of the task. Similar to the update() in Components. -
stop
void stop()Stop the task immediately. This can be called at any time by the AI controller. -
getStatus
Task.Status getStatus()Get the current status of the task.- Returns:
- status
-