Cooldown (state)#
Base strcut for other states that have a cooldown, meaning that they are automatically deleted after a certain amount of time.
-
struct Cooldown : public Component#
Subclassed by Hurting, Shooting, Spawning
Public Functions
-
Cooldown(Uint64 cool_down, Uint64 flicker_timer, std::array<int, 3> sdl_colour_mask = {255, 255, 255}, int sdl_alpha_mask = 255)#
-
virtual void update() override#
Component initialization. This is called in Entity::addComponent and should have no arguments.
-
inline virtual void custom_update()#
-
Cooldown(Uint64 cool_down, Uint64 flicker_timer, std::array<int, 3> sdl_colour_mask = {255, 255, 255}, int sdl_alpha_mask = 255)#