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

Pin It on Pinterest

Share This

Join Our Newsletter

Sign up to our mailing list to receive the latest news and updates about and the Informed.AI Network of AI related websites which includes Events.AI, Neurons.AI, Awards.AI, and Vocation.AI

You have Successfully Subscribed!