17 #ifndef HEADER_SUPERTUX_SUPERTUX_GAME_OBJECT_ITERATOR_HPP 18 #define HEADER_SUPERTUX_SUPERTUX_GAME_OBJECT_ITERATOR_HPP 22 #include "game_object_manager.hpp" 28 typedef std::vector<GameObject* >::const_iterator Iterator;
40 m_object =
dynamic_cast<T*
>(*m_it);
50 m_object =
dynamic_cast<T*
>(*m_it);
67 const T* operator->()
const {
71 T& operator*()
const {
81 return m_it == other.m_it;
86 return !(*
this == other);
104 auto& objects = m_manager.get_objects_by_type_index(
typeid(T));
109 auto& objects = m_manager.get_objects_by_type_index(
typeid(T));
Definition: game_object_iterator.hpp:96
This class provides basic controlling functions for a sector.
Definition: game_object_manager.hpp:45
Definition: game_object_iterator.hpp:25