#include <thing.h>
Inheritance diagram for CPickup::
Public Methods | |
CPickup () | |
virtual int | HeroOverlaps () |
Called each frame that hero is touching the action box. | |
virtual void | Draw () |
Called to draw this thing. Note that this does not get called if thing does not get drawn (i.e. if clipped out of visible viewport). Use Tick() for updating things that must be updated each frame. | |
virtual int | Tick () |
Called per frame to update this thing. Returning THING_DIE indicates that this "thing" should be deleted from the world. | |
virtual void | Initialize (int b0, int b1) |
Called just before added to world, to be used for custom initialization. May supercede OnAdded. (fixme). | |
virtual bool | OnInventoryClear () |
Called on an object in the inventory when inventory is cleared at end of level. Return false if object should remain in inventory (e.g. objects that persist throughout the game such as powerboots, as opposed to objects that disappear after each level, such as keys). | |
Protected Attributes | |
int | m_nScoreDiff |
int | m_nHealthDiff |
int | m_nAnimationCount |
bool | m_bInventoryItem |
bool | m_bPersistent |
http://www.scorpioncity.com/djgame.html Copyright (C) David Joffe. Generated: 15 Jul 2001 |