supertux
Public Member Functions | Public Attributes | List of all members
GameObjectClasses Struct Reference

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

GameObjectClassesadd (const std::type_info &info)
 

Public Attributes

std::vector< std::type_index > types
 

Detailed Description

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.


The documentation for this struct was generated from the following file: