Where to put collision handling in tile based game?
<p>Im currently developing a c++ console game.
The gam consist of a board class with a 2D array of tiles.</p>

<p>I also have game pieces classes for players, arrows, and items.</p>

<p>I need to be able to handle every collision between players/arrows/items, and im wondering between two possible solutions.</p>

<p>1) Hold a list on every tile that holds all the game pieces currently on that tile, and have an enterTile(gamePiece piece) on the tiles and put the logic there.</p>

<p>2) Have an outer "CollisionDetector" class that will scan all tiles/pieces for collision and handle them there.</p>

<p>What do you think?</p>
