#include <Virus.h>
Public Methods | |
| Virus () | |
| Default constructor. | |
| Virus (char virType, Character *c) | |
| Constructor. | |
| Virus (char virType, Character *c, float timeLeft) | |
| Constructor. | |
| void | init (char virType, Character *c, float timeLeft) |
| Initialises this object. | |
| virtual | ~Virus () |
| Destructor. | |
| bool | update (float dt) |
| Update the game logic. | |
| int | getRedValue () const |
| Returns the value of the red channel to use when drawing the character this virus affects. | |
| Virus * | getCloneFor (Character *c) const |
| Returns a new virus that shares the same properties as this Virus except it is targeted for a different character. | |
| int | getVirusType () const |
| Returns the type of the virus. | |
Static Public Methods | |
| void | initVars (ConfigFile &f) |
| Initializes configurable members for the Virus class. | |
The effects only last for a period of time. Certain powerups contain viruses that are given to a Character. Viruses can also be spread when an infected player collides with the other player. A character can only have one virus at a time.
|
|
Default constructor.
|
|
||||||||||||
|
Constructor.
|
|
||||||||||||||||
|
Constructor.
|
|
|
Destructor.
|
|
|
Returns a new virus that shares the same properties as this Virus except it is targeted for a different character.
|
|
|
Returns the value of the red channel to use when drawing the character this virus affects.
|
|
|
Returns the type of the virus.
|
|
||||||||||||||||
|
Initialises this object.
|
|
|
Initializes configurable members for the Virus class.
|
|
|
Update the game logic.
|
1.2.18