Class Powerup
Parent: MovingSprite
Powerups are goodies (well, or badies) that affect Alex’s state somehow. This class is the baseclass for all powerups.
Events
- Activate
-
This event is triggered when the powerup is applied to the player. Do not apply other powerups to the player inside the event handler for this, this will cause undefined behaviour.
Instance Methods
activate!
activate!()
Apply the powerup to the player. This method is not really useful on itself, it is overridden in the subclasses to do something meaningful. Currently, it just issues the Activate event.