Wanted to get some feedback from you on some alterations I want to do with the tool kit
I want to alter the path finding for a hex grid map.
The goal is to make it so some units will have to do forward movement before turning one hex side. Examples:
Infantry can turn when ever they want so there are no restrictions on their path finding
bigger units might have to travel one hex before switching one hex side (Say it is facing north and wants to face south it would need to, 1. Move one hex forward, turn NE, move one hex, turn Se, move one hex, turn south
My solution so far includes
- Two different path finding blue prints: the standard one and another that forces the forward movement before turning
- Units will need some C++ code in the background to work along with the blueprints for the special units
- As for the special path finding I was thinking
a. give each unit an int value stating how many forward movements they need to do, and a bool to let the system know if they can turn.
b. Then in the path finding check to see if a turn is allowed; if not path only in the direction the unit is facing (which I believe is already stored) if true then path find in three direction, the one the unit is facing and one on each side of that
NOTE the reason I was going to have a bool in the unit class was to allow movements to carry over. If a unit moves one space this turn it can turn at the start of its next turn