Making walls breakables

This commit is contained in:
Zoe Roux
2021-06-07 21:47:04 +02:00
parent 7234d51130
commit fe9a650427
5 changed files with 15 additions and 6 deletions
+3 -2
View File
@@ -13,9 +13,10 @@ namespace BBM
_healthPoint()
{}
HealthComponent::HealthComponent(WAL::Entity &entity, unsigned int healthPoint)
HealthComponent::HealthComponent(WAL::Entity &entity, unsigned int healthPoint, WAL::Callback<WAL::Entity &> onDeath)
: WAL::Component(entity),
_healthPoint(healthPoint)
_healthPoint(healthPoint),
onDeath(onDeath)
{}
WAL::Component *HealthComponent::clone(WAL::Entity &entity) const