move abstract unit classes into a separate directory and add ControlledAntUnit class

This commit is contained in:
2024-10-13 20:01:14 +10:00
parent 0f9b20912e
commit 2e1878b1fe
9 changed files with 16 additions and 28 deletions

View File

@@ -1,4 +1,4 @@
extends ControlledUnit
extends ControlledAntUnit
class_name AntGatherer
enum State {
@@ -13,7 +13,6 @@ const MAX_CARRY: int = 8
var state: State = State.WANDERING
@onready var gathering: Gathering = $Gathering
@onready var skeleton: Skeleton3D = $AntModel/Armature/Skeleton3D
static func get_cost() -> int:
@@ -22,7 +21,6 @@ static func get_cost() -> int:
func _ready() -> void:
assert(gathering != null, "gathering missing!")
assert(skeleton != null, "skeleton missing!")
super._ready()
moving_started.connect(_on_moving_started)
moving_ended.connect(_on_moving_ended)