2024-03-14 22:13:33 +01:00
|
|
|
extends Resource
|
|
|
|
|
class_name ActionBehaviour
|
|
|
|
|
|
2024-03-29 02:51:06 +01:00
|
|
|
func do_action(source_tile: InsectTile, action_tile: InsectTile, map: HexGrid) -> void:
|
2024-03-14 22:13:33 +01:00
|
|
|
pass
|
|
|
|
|
|
2024-03-29 02:51:06 +01:00
|
|
|
func get_targets(source_pos: Vector4i, map: HexGrid) -> Array[InsectTile]:
|
|
|
|
|
return []
|
2024-03-15 03:24:32 +01:00
|
|
|
|
2024-03-14 22:13:33 +01:00
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
#
|