VEGO-Engine  0.1
Loading...
Searching...
No Matches
PickupComponent Class Reference
Inheritance diagram for PickupComponent:
[legend]
Collaboration diagram for PickupComponent:
[legend]

Public Member Functions

 PickupComponent (std::function< void(Entity *)> func)
 Construct a new Powerup Component object.
 
void update (uint_fast16_t diffTime) override
 
- Public Member Functions inherited from Component
virtual void init ()
 

Additional Inherited Members

- Public Attributes inherited from Component
Entityentity
 

Constructor & Destructor Documentation

◆ PickupComponent()

PickupComponent::PickupComponent ( std::function< void(Entity *)> func)

Construct a new Powerup Component object.

Parameters
funcThe function to be called when the powerup is picked up

Member Function Documentation

◆ update()

void PickupComponent::update ( uint_fast16_t diffTime)
overridevirtual

Reimplemented from Component.


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