#include <bonus.h>
Collaboration diagram for Bonus:

Public Member Functions | |
| Bonus () | |
| virtual | ~Bonus () |
| void | initByID (int params_ID) |
| Initializes Bonus according to its ID in params. | |
| virtual void | picked (Tank &t) |
| virtual double | modifyMaxSpeed (double speed) |
Protected Attributes | |
| bool | mPermanent |
| Tells whether the bonus is permanent or time-limited. | |
| Tank * | mInfluencedTank |
| Tank that took this bonus. MAY BE NULL! | |
| int | mIconIndex |
| Icon that will be displayed on player's screen when he has this bonus. | |
This class is probably not needed on client. When created, the class is bound to BonusBox. When some tank takes the Bonus (collides with bonusbox) - the bound is cancelled and BonusBox destroyed. Then the bonus is bound to the tank. If it is permanent bonus, its function is applyied and then destroyed. Otherwise it destroys after the bonus expiration.
Definition at line 17 of file bonus.h.
|
|
|
|
|
|
|
|
Initializes Bonus according to its ID in params.
Definition at line 14 of file bonus.cpp. Referenced by World::createBonusBox(). |
|
|
|
|
|
Definition at line 34 of file bonus.h. References mInfluencedTank. |
|
|
Icon that will be displayed on player's screen when he has this bonus.
|
|
|
Tank that took this bonus. MAY BE NULL!
Definition at line 44 of file bonus.h. Referenced by picked(). |
|
|
Tells whether the bonus is permanent or time-limited.
|
1.4.5