Game Engine 2D Platformer
Public Member Functions | List of all members
TileComponent Class Reference

TileComponent class used to make tiles. More...

#include <TileComponent.hpp>

Inheritance diagram for TileComponent:
Inheritance graph
[legend]
Collaboration diagram for TileComponent:
Collaboration graph
[legend]

Public Member Functions

 TileComponent (SDL_Renderer *ren)
 Constuctor for TileComponent. More...
 
 ~TileComponent ()
 Destructor for TileComponent. More...
 
void StartUp ()
 Initializes the attributes for TileComponent. More...
 
void ShutDown ()
 Destroys and frees attributes for TileComponent. More...
 
void Update (GameEntity &entity)
 Updates the TileComponent. More...
 
void Render (GameEntity &entity)
 Renders the TileComponent. More...
 
- Public Member Functions inherited from Component
 Component ()=default
 Constuctor for Component class. More...
 
virtual void LoadImage (std::string filepath, SDL_Renderer *ren)
 To initalize loadImages for children classes. More...
 
virtual void HandleEvent (GameEntity &entity)
 Handle the events of GameEntity object for children classes. More...
 

Detailed Description

TileComponent class used to make tiles.

Constructor & Destructor Documentation

◆ TileComponent()

TileComponent::TileComponent ( SDL_Renderer *  ren)

Constuctor for TileComponent.

Parameters
renRenderer of the Main Game Loop

◆ ~TileComponent()

TileComponent::~TileComponent ( )

Destructor for TileComponent.

Member Function Documentation

◆ Render()

void TileComponent::Render ( GameEntity entity)
virtual

Renders the TileComponent.

Renders tile on screen.

Parameters
entityGameEntity Object
GameEntity&entity

Reimplemented from Component.

◆ ShutDown()

void TileComponent::ShutDown ( )
virtual

Destroys and frees attributes for TileComponent.

Reimplemented from Component.

◆ StartUp()

void TileComponent::StartUp ( )
virtual

Initializes the attributes for TileComponent.

Reimplemented from Component.

◆ Update()

void TileComponent::Update ( GameEntity entity)
virtual

Updates the TileComponent.

Parameters
entityGameEntity Object

Implements Component.


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