Hexworks / mixite

A GUI agnostic hexagonal grid library. Supports a multitude of grid layouts including hexagonal, triangular, rectangular and more.
Apache License 2.0
191 stars 31 forks source link

Eliminate the coordinates object from HexagonalGridImpl #27

Closed adam-arold closed 8 years ago

adam-arold commented 8 years ago

This is the current major bottleneck which affects memory usage. The GridData instance in HexagonalGridImpl holds all the necessary information for generating the possible coordinates for a given grid so we need to work around this.

As part of this task HexagonalGrid#containsCubeCoordinate also needs to be refactored. The implementation should delegate to the GridLayoutStrategy since it is used to fetch the coordinates in the first place.

adam-arold commented 8 years ago

This gets externalized with the SatelliteDataStorage object making the task pointless.