Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CTeleporter Class Reference

#include <thing.h>

Inheritance diagram for CTeleporter::

CThing List of all members.

Public Methods

 CTeleporter ()
virtual void Initialize (int b0, int b1)
 Called just before added to world, to be used for custom initialization. May supercede OnAdded. (fixme).

virtual int Action ()
 Called when the user presses the action key while within the "action area" (bounds) of the thing. This function should return to the game information on what action to perform. This function *may* be superceded by the one below it.

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.


Public Attributes

int m_iAnimationCount

Static Public Attributes

SOUND_HANDLE c_iSoundTeleport

Detailed Description

Pressing "up" on a teleporter takes hero to corresponding teleporter. Thus teleporters are always placed in pairs. You can have up to four pairs of teleporters in each level, these are chosen by selecting the corresponding sprites in the level editor.


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

http://www.scorpioncity.com/djgame.html
Copyright (C) David Joffe. Generated: 15 Jul 2001