Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

RespawnEntity Class Reference

The RespawnEntity class waits for the given amount of time. More...

#include <RespawnEntity.h>

Inheritance diagram for RespawnEntity:

GameLogic List of all members.

Public Methods

 RespawnEntity (Entity *ent, float timeToRespawn)
 Constructs a new RespawnEntity.

virtual ~RespawnEntity ()
 Cleans up this object.

bool update (float dt)
 Waits to respawn this object's Entity.


Detailed Description

The RespawnEntity class waits for the given amount of time.

After the time has passed, the Entity given to the object is inserted into the game's list of Entities.

Respawn Entity is not default-constructable or copyable.


Constructor & Destructor Documentation

RespawnEntity::RespawnEntity Entity   ent,
float    timeToRespawn
 

Constructs a new RespawnEntity.

Adds the passed Entity ent to the game after timeToRespawn has passed. After ent is back into the game, the update method will return true.

RespawnEntity::~RespawnEntity   [virtual]
 

Cleans up this object.

If this object is destructed, it does delete the passed in Entity. This should only happen if the program exits before the respawn event takes place.


Member Function Documentation

bool RespawnEntity::update float    dt [virtual]
 

Waits to respawn this object's Entity.

After the Entity has been added back into the game, update returns true.

Implements GameLogic.


The documentation for this class was generated from the following files:
Generated on Tue Mar 4 02:29:26 2003 for SuperIsoBomb by doxygen1.2.18