mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-21 22:05:10 +00:00
21 lines
432 B
C++
21 lines
432 B
C++
//
|
|
// Created by Benjamin Henry on 2021-06-01.
|
|
//
|
|
|
|
#include "BonusComponent.hpp"
|
|
|
|
namespace BBM {
|
|
BonusComponent::BonusComponent(WAL::Entity &entity)
|
|
: WAL::Component(entity)
|
|
{}
|
|
|
|
WAL::Component *BonusComponent::clone(WAL::Entity &entity) const
|
|
{
|
|
return new BonusComponent(entity);
|
|
}
|
|
|
|
BonusComponent::BonusType BonusComponent::getRandomBonusType() const
|
|
{
|
|
return (static_cast<BonusType>(std::rand() % IGNOREWALLS));
|
|
}
|
|
} |