Hi
I am thinking about adding different costs of moving between tiles to a grid. Like in Civilization, only the direction that adjacent to a river has a greater cost. Although there is a Penalty variable in GridNode class, the neighbour costs seems belong to GridGraph.
My thought now is that:
- SetConnectionInternal(dir, false) to cut the neighbour
- AddConnection(node, cost) to set the connection and cost.
(I will do this on both sides)
In the doc of AddConnection it says “If the connection already exists, the cost will simply be updated and no extra connection added.” Does it mean I don’t need to call “SetConnectionInternal” first? Ot they are different types of connection?
The Seeker and Tag let different AI have different penalties. Is it possible to let them have different cost of moving between tiles?