Class ObstacleAttackTask
java.lang.Object
com.deco2800.game.ai.tasks.DefaultTask
com.deco2800.game.components.tasks.ObstacleAttackTask
- All Implemented Interfaces:
PriorityTask
,Task
public class ObstacleAttackTask extends DefaultTask implements PriorityTask
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Boolean
lock_use
-
Constructor Summary
Constructors Constructor Description ObstacleAttackTask(Entity npc, Entity target, int priority, float viewDistance)
-
Method Summary
Modifier and Type Method Description Vector2
enemyCreatePosition()
int
getPriority()
void
start()
Start running this task.
-
Field Details
-
lock_use
public static java.lang.Boolean lock_use
-
-
Constructor Details
-
Method Details
-
start
public void start()Description copied from interface:Task
Start running this task. This will usually be called by an AI controller.- Specified by:
start
in interfaceTask
- Overrides:
start
in classDefaultTask
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfacePriorityTask
- Returns:
- priority
-
enemyCreatePosition
-