So I've been working on hex movement via mouse input in a turn based game. Thanks to xyz I have constructed a flood fill algorithm that visualizes and makes an array of the possible moveable tiles.
I have played around with AStar2D and can move my unit around in this area, however, I have certain move restrictions I'd like to implement, and am not sure what direction to go to implement these.
My issue is I want the unit to have to move at least x in one direction before it can move in another direction. I've thought of ways of using conditions with distance calculations, but that seems like a lot of code to do this.
Any suggestions on what direction to research that might help me implement this?