Closed namelessvoid closed 6 years ago
Changes so far:
AbstractPathfinder
has template parameter TSpatialRepresentation
(e.g. Coordinates
)AbstractPathfinder
accepts an IWorldAdapter<TSpatialRepresentation>
as query abstraction to the world (e.g. a Board
)AStar
and Node
are adjusted to new interfacesNot finished yet:
Path
is still bound to Coordinates
but also requires template parameter TSpatialRepresentation
IWorldAdapter
is not finished yet and is adjusted when path finding is extended later on
The path finding is tightly coupled to game objects like
Board
,Terrain
andUnit
. This can be resolved by:Board
.Technical thoughts:
IBoardQueryable
BoardQueryableComponent
) added to theBoard
game object to encapsulate query-logic