AttackerObject class

Derived classes

class Bomb final
class Pig
class Player final

Constructors, destructors, conversion operators

AttackerObject(const int damage, const int range, const int speed)

Public functions

void update() virtual
void attack() virtual
auto canAttack() const -> bool virtual
auto getDamage() const -> int virtual
auto isAttack() const -> bool virtual
auto isDaming() const -> bool virtual
auto getAttackDamage() -> int virtual
auto getAttackRange() -> int virtual
auto getAttackSpeed() -> int virtual

Protected variables

int attack_damage_
int attack_range_
int attack_speed_
Timer attack_timer_
Timer delay_timer_
bool is_attacking_
bool is_daming_
bool can_attack_