benreid24 / BLIB

Small organized collection of common code I have accumulated over the years that has amassed into a proper 2d game engine
1 stars 0 forks source link

Refactor Grid Iterators #142

Closed benreid24 closed 1 year ago

benreid24 commented 1 year ago

Grid iterators are over-engineered and heavy-weight objects with too much complication. Grid accessors all return a fixed number of cells. Return values from accessors should be std::array<Cell*, N>. Callers can iterate over cells and then over cell contents in a nested loop. Existing iterator and range interfaces should be removed entirely.