Pathfinding: transporting land units on ships
Hi Im doing a turn-based, tile-based strategy game (in that sense similar to civilization). I use A* pathfinding. What is the best way to deal with land-units “boarding” transport ships? My idea is to make tile with friendly transport-ships (with free transport slots) mark their tile as a terrain type which both land and sea-units may enter. When switching to the next players turn, the old players ships must mark their tiles as non-walkable for land-units again. Then the new player marks his/hers ship-tiles as walkable. Also when a ship moves it must check the tile it just left if it’s still capable of accepting friendly land-units. Good idea? Any better ideas?Thanks Erik
Link to Full Article: Pathfinding: transporting land units on ships