Original Post
I''m trying to get an OO backbone for a game put together, and what I''m trying to do is have instances of a base class, Object, managed an inherited class, SystemObject. Ideally, the SystemObject class will use an STL map to store Objects and their vnum''s (integers) while individual Objects track their contents as a integer vector and their location as an integer.
My problem is this: I''d like to refer to all Objects by pointers, but I''m getting a lot of complications because of the STL also tracking them as pointers. (That''s what it does, right?) So should I use a map of ? I tried this and got a lot of errors, and I see no good way to work with a map of Objects. The biggest problem (I think) is that the STL functions (like push_back()) are expecting references, not pointers. What can I do to reconcile my Object *''s with the STL?
PS: I hope that made sense.
-----------------------------------
"Is the size of project directly proportional to the amount of stupidity to be demonstrated?"
-SabreMan