EzGL
|
Allows Component to utilize dynamic polymorphism. More...
#include <IComponent.hpp>
Public Member Functions | |
virtual void | IInit (Object &self, Object &main)=0 |
Initialize all components. More... | |
virtual void | IUpdate (Object &self, Object &main)=0 |
Update all components. More... | |
Allows Component to utilize dynamic polymorphism.
Without this base class, components of unspecified types couldn't be stored inside containers like vectors. This class is not copyable.
Initialize all components.
self | Reference to object in question. |
main | Reference to main object. |
Implemented in EzGL::Component< T >, EzGL::Component< PlatformerEvent >, EzGL::Component< Collision >, EzGL::Component< MainLogic >, EzGL::Component< MainEvent >, EzGL::Component< Texture >, EzGL::Component< Motion >, EzGL::Component< MainRender >, EzGL::Component< TileMap >, EzGL::Component< PlatformerLogic >, EzGL::Component< CenterCamera >, EzGL::Component< Gravity >, and EzGL::Component< Control >.
Update all components.
self | Reference to object in question. |
main | Reference to main object. |
Implemented in EzGL::Component< T >, EzGL::Component< PlatformerEvent >, EzGL::Component< Collision >, EzGL::Component< MainLogic >, EzGL::Component< MainEvent >, EzGL::Component< Texture >, EzGL::Component< Motion >, EzGL::Component< MainRender >, EzGL::Component< TileMap >, EzGL::Component< PlatformerLogic >, EzGL::Component< CenterCamera >, EzGL::Component< Gravity >, and EzGL::Component< Control >.