Refactored to allow hotseat and multiplayer. TODO: Create interface class for webrtc/enet multiplayer

This commit is contained in:
Sch1nken 2024-03-22 01:37:05 +01:00
parent d688eaf9c6
commit 5fe8f22ccb
27 changed files with 798 additions and 135 deletions

View file

@ -10,7 +10,8 @@ func select_targets(source_pos: Vector4i, map: HexGrid): # -> Array[InsectTile]:
var tile = map.get_tile(neighbour)
if tile != null:
# TODO: Find better way to see what tile we have...
if not tile.resource.movement_behaviour is MovementBehaviourMosquito:
possible_action_targets.push_back(tile)
pass
#if not tile.resource.movement_behaviour is MovementBehaviourMosquito:
# possible_action_targets.push_back(tile)
GameEvents.insect_tiles_selected_for_action.emit(source_pos, possible_action_targets)