BonusBox Class Reference
[Game Data]

Representation of "box with bonus" - that means what player can see. More...

#include <bonusbox.h>

Inherits WorldEntity.

Inheritance diagram for BonusBox:

Inheritance graph
[legend]
Collaboration diagram for BonusBox:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BonusBox ()
 ~BonusBox ()
bool initSpecific (Bonus *bonus_function)
 Makes class-specific initialization - binds object and its bonus.
BonusgetBonus ()
 Returns mBonus.
void setNoBonus ()
 Resets the mBonus field to NULL, indicating there's no Bonus.

Private Attributes

BonusmBonus
 bonus represented

Detailed Description

Representation of "box with bonus" - that means what player can see.

Definition at line 13 of file bonusbox.h.


Constructor & Destructor Documentation

BonusBox::BonusBox  ) 
 

Definition at line 5 of file bonusbox.cpp.

References cBonusBox, and CommonEntity::mType.

BonusBox::~BonusBox  ) 
 

Definition at line 10 of file bonusbox.cpp.


Member Function Documentation

Bonus* BonusBox::getBonus  )  [inline]
 

Returns mBonus.

Returns:
Value of mBonus field, may be NULL!

Definition at line 30 of file bonusbox.h.

References mBonus.

bool BonusBox::initSpecific Bonus bonus_function  ) 
 

Makes class-specific initialization - binds object and its bonus.

Parameters:
bonus_function What should this bonusbox mean
Returns:
True if successfull

Definition at line 15 of file bonusbox.cpp.

References mBonus.

Referenced by World::createBonusBox().

void BonusBox::setNoBonus  )  [inline]
 

Resets the mBonus field to NULL, indicating there's no Bonus.

Definition at line 37 of file bonusbox.h.

References mBonus.


Member Data Documentation

Bonus* BonusBox::mBonus [private]
 

bonus represented

Definition at line 43 of file bonusbox.h.

Referenced by getBonus(), initSpecific(), and setNoBonus().


The documentation for this class was generated from the following files:
Generated on Wed Apr 12 14:12:05 2006 for bjs by  doxygen 1.4.5