Hey all, i have the following -code/system design- question.
Basically i have a tile map where you have a per-tile control. Each tile for example has a texture and some properties. When i click on the tile the tile changes texture and / or properties. And the question is; who handles the changes in the tile?
Do i call:
1. tile->update()
2. tile_map->update(tile)
3 tile_map_manager->update(map, tile)
Is there a common accepted solution to who handles modifications we apply to our entity?
Currently i'm using the 1. option and i was wondering is this is a good approach.
Thanks!
↧