First post, I'm making my first game, building a framework and making some progress.
I've created a class for my entities, and i've created a std::vector of pointers to the instances so that i can loop through them to trigger a member fuction to update their logic
entities.updateLogic();
what i want to do though, is inside that updateLogic() member function, i want to cycle through every other member of the entity vector, but the problem i have, is i can't define the entity vector inside the entity class definition?
help!
(Thanks)