Swarm/ActionBehaviour/ActionBehaviourResource.gd

19 lines
593 B
GDScript3
Raw Normal View History

extends Resource
class_name ActionBehaviour
func do_action(source_tile: InsectTile, action_tile: InsectTile, map: HexGrid) -> void:
pass
func get_targets(source_pos: Vector4i, map: HexGrid) -> Array[InsectTile]:
return []
# NOTE: When selecting a tile, check if there is an action behaviour
# If yes: In addition to showing moveable spaces (0 for the mosquito by default)
# also show action options (usually clicking other nearby tiles)
# For pillbug this "select" the tile, then create some sort of movement-outline
# to move thant unit there
# Check if unit was recently moved etc
#