I've made a tile/grid system that I'm going to use for A* pathfinding and stuff. Now I want to move the code to its own source files so that I can more easely reuse the system on different projects. But as each project will probably need slighlty different MapNode objects, I need some way to customize this.
I'm still pretty new to Obj-C so I may not be fully aware of all the implications for the different solutions.
I was thinking of maybe using a MapObject class that I can inherit from in each project. But that may be a little messy. Another idea is to use categories. I don't really know.
As the grid will have many MapObjects size is an issue and probably performance as well.
Any suggestions?