CPowerUp Class Reference

The generalized powerup class (for health, poison, etc.). More...

#include <class.powerup.hh>

Inheritance diagram for CPowerUp:

Inheritance graph
[legend]
Collaboration diagram for CPowerUp:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CPowerUp (CSprite *pSprite, byte type, byte min, byte max)
CPowerUpCastToPowerUp ()
 Cast to powerup class.
bool Interact (CObject *pObj)
 Interact (check if the powerup was picked up).

Public Attributes

byte mcType
byte mcAmount


Detailed Description

The generalized powerup class (for health, poison, etc.).

Constructor & Destructor Documentation

CPowerUp::CPowerUp ( CSprite pSprite,
byte  type,
byte  min,
byte  max 
)


Member Function Documentation

CPowerUp * CPowerUp::CastToPowerUp (  ) 

Cast to powerup class.

bool CPowerUp::Interact ( CObject pObj  )  [virtual]

Interact (check if the powerup was picked up).

Reimplemented from CObject.


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Fri Feb 22 09:36:54 2008 for Mega Maryo by  doxygen 1.5.5