#include <thing.h>
Inheritance diagram for CSpikeBall::
Public Types | |
enum | EType { TYPE_BOUNCING, TYPE_STATIONARY } |
Public Methods | |
CSpikeBall () | |
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 int | HeroOverlaps () |
Called each frame that hero is touching the action box. | |
virtual void | OnAdded () |
Called when thing is first added to world. Can be used for initialisation. | |
virtual void | Initialize (int b0, int b1) |
Called just before added to world, to be used for custom initialization. May supercede OnAdded. (fixme). | |
Protected Attributes | |
int | m_nYOffset |
int | m_nBounceIndex |
int | m_nInitialOffset |
EType | m_eType |
There is also a stationary type, which breaks up when you touch it.
http://www.scorpioncity.com/djgame.html Copyright (C) David Joffe. Generated: 23 Sep 2001 |