unknown-horizons / godot-port

Unknown Horizons Godot Engine Port
https://www.unknown-horizons.org
GNU General Public License v2.0
663 stars 83 forks source link

Reimplement unit movement mechanic as interaction state #75

Closed artism90 closed 3 years ago

artism90 commented 3 years ago

Added MovementContext with slight adjustments in PlayerCamera and Interaction classes plus a bit of refactoring.

When a player controlled unit is selected, PlayerCamera now switches its interaction context from SelectionContext into MovementContext and the unit can be set in motion again.