9 #include "GameObject.hpp" 14 std::vector<GameObject*> m_objects;
17 template<
class ... args_t>
19 m_objects = {&list ...};
23 m_objects.push_back(&obj);
26 std::remove(m_objects.begin(), m_objects.end(), &obj);
29 void update(sf::Time t) {
30 for(
auto& ptr: m_objects) {
37 #endif // OBJECTPACK_HPP Contains all SFGF classes.
Definition: GameObject.hpp:14
Definition: ObjectPack.hpp:13