Building Game Engines
Public Member Functions | List of all members
CollectibleComponent Class Reference

#include <CollectibleComponent.hpp>

Inheritance diagram for CollectibleComponent:
Inheritance graph
Collaboration diagram for CollectibleComponent:
Collaboration graph

Public Member Functions

 CollectibleComponent (int type)
 
 ~CollectibleComponent ()
 
virtual void Update ()
 
virtual void Render (SDL_Renderer *ren)
 
int GetType ()
 
- Public Member Functions inherited from Component
 Component ()
 
virtual ~Component ()=0
 

Constructor & Destructor Documentation

◆ CollectibleComponent()

CollectibleComponent::CollectibleComponent ( int  type)

◆ ~CollectibleComponent()

CollectibleComponent::~CollectibleComponent ( )

Member Function Documentation

◆ GetType()

int CollectibleComponent::GetType ( )

◆ Render()

void CollectibleComponent::Render ( SDL_Renderer *  renderer)
virtual

Pure virtual Render Method. Renderer is the game's renderer. Renders the Component if there is a visual component.

Implements Component.

◆ Update()

void CollectibleComponent::Update ( )
virtual

Pure virtual Update Method. Performs any updates needed to this component each frame.

Implements Component.


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