#include <thing.h>
Inheritance diagram for CDynamite::
Public Methods | |
CDynamite () | |
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 | 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 | HeroOverlaps () |
Called each frame that hero is touching the action box. | |
virtual bool | OverlapsBounds (int x, int y) |
Test if hero is at least partially inside the box. By default this just uses the action bounds; override this for things that have irregular shapes that cannot be described by a single rectangle. | |
virtual void | DrawActionBounds (const djColor &Color) |
Draw action bounds. This is purely for debugging/development. | |
Protected Attributes | |
int | m_nCount |
int | m_nX1Right |
int | m_nX2Right |
int | m_nX1Left |
int | m_nX2Left |
int | m_nCenter |
http://www.scorpioncity.com/djgame.html Copyright (C) David Joffe. Generated: 15 Jul 2001 |