supertux
|
A helper structure to list all the type_indexes of the classes in the type hierarchy of a given class. More...
#include <game_object.hpp>
Public Member Functions | |
GameObjectClasses & | add (const std::type_info &info) |
Public Attributes | |
std::vector< std::type_index > | types |
A helper structure to list all the type_indexes of the classes in the type hierarchy of a given class.
This makes it easier to register e.g. a MrIceblock in lists for MrIceBlock, WalkingBadguy, Badguy, Portable, MovingSprite, MovingObject, and GameObject.