SDL SPOOKY PLATFORMER ENGINE  0.2.0
An implementation of a platformer using sdl, implemented using an entity component system and efficient collision management.
Public Member Functions | Protected Attributes | Friends | List of all members
Component Class Referenceabstract

#include <Component.hpp>

Inheritance diagram for Component:
BasicTextComponent ColliderComponent ColliderListComponent ControllerComponent EnemyAIComponent HealthComponent ImageComponent PhysicsComponent SpriteComponent TileMapComponent TransformComponent

Public Member Functions

 Component ()
 
virtual void Update (float deltaTime) = 0
 Update this component according to the deltaTime. More...
 
virtual void Render (SDL_Renderer *ren)
 Render this component in the screen if it can be rendered. More...
 
virtual ~Component ()
 

Protected Attributes

GameObjectentity
 The entitity to which this component belongs to. More...
 

Friends

class GameObject
 

Constructor & Destructor Documentation

Component::Component ( )
Component::~Component ( )
virtual

Member Function Documentation

void Component::Render ( SDL_Renderer *  ren)
virtual

Render this component in the screen if it can be rendered.

Reimplemented in ColliderComponent, BasicTextComponent, TileMapComponent, ImageComponent, SpriteComponent, and ColliderListComponent.

virtual void Component::Update ( float  deltaTime)
pure virtual

Friends And Related Function Documentation

friend class GameObject
friend

Member Data Documentation

GameObject* Component::entity
protected

The entitity to which this component belongs to.


The documentation for this class was generated from the following files: