#include <RespawnEntity.h>
Inheritance diagram for RespawnEntity:

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. | |
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.
|
||||||||||||
|
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. |
|
|
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. |
|
|
Waits to respawn this object's Entity. After the Entity has been added back into the game, update returns true. Implements GameLogic. |
1.2.18