#include <Powerup.h>
Inheritance diagram for Game::PowerupFactory:


Public Methods | |
| Powerup * | getPowerup () |
| Parse::Parser * | makeParserToParseMe (std::istream &in) |
Definition at line 76 of file Powerup.h.
|
|
Definition at line 58 of file Powerup.cpp. |
|
|
Dynamically allocate a Powerup based on internal probabilites. Behavior is undefined if the sum of the probabilities is greater than 1, or if any invidiual probability is less than 0. It returns NULL if no powerup is allocated. Definition at line 64 of file Powerup.cpp. |
|
|
All probabilities are in decimal form. IE, 1 out of 5, is .2, not 20. Creates parser with the following identifiers
Reimplemented from Parse::Parseable. Definition at line 79 of file Powerup.cpp. |
1.2.12 written by Dimitri van Heesch,
© 1997-2001