#include <Powerup.h>
Inheritance diagram for Powerup:
Public Methods | |
Powerup (const Rect &initPos, float height, char powType) | |
Constructor. | |
virtual | ~Powerup () |
Destructor. | |
virtual bool | update (float dt) |
Update the game logic. | |
virtual void | draw (const Point &anchor) |
Draw the powerup. | |
void | affectCharacter (Character *c) |
Affects a Character with this powerup's properties. | |
virtual float | getHeight () const |
Returns the height of the powerup on the map. | |
char | getPowerupType () const |
Returns the type of powerup. | |
Static Public Methods | |
void | initVars (ConfigFile &f) |
Initializes the respawn time from the given ConfigFile. |
Powerup is not defaultly-constructable or copyable.
|
Constructor.
|
|
Destructor.
|
|
Affects a Character with this powerup's properties.
|
|
Draw the powerup.
Implements Entity. |
|
Returns the height of the powerup on the map.
Reimplemented from Drawable. |
|
Returns the type of powerup.
|
|
Initializes the respawn time from the given ConfigFile.
|
|
Update the game logic.
Implements Entity. |