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

GameLogic Class Reference

A GameLogic class is a an updated object within the game. More...

#include <GameLogic.h>

Inheritance diagram for GameLogic:

EndGame RespawnEntity RespawnPowerup List of all members.

Public Methods

 GameLogic ()
virtual ~GameLogic ()
virtual bool update (float dt)=0
 Updates the logic to this object.


Detailed Description

A GameLogic class is a an updated object within the game.

It does not have an "existance" within the game like an Entity does. A GameLogic is updated and has a lifetime, but it does not get considered in the input or draw cycles.

GameLogic is an abstract base class with no implementation file.


Constructor & Destructor Documentation

GameLogic::GameLogic   [inline]
 

virtual GameLogic::~GameLogic   [inline, virtual]
 


Member Function Documentation

virtual bool GameLogic::update float    dt [pure virtual]
 

Updates the logic to this object.

Returns true when the lifetime of this object has ended, and it wants to be deleted.

Parameters:
dt  the amount of time since the last frame
Returns:
true if this GameLogic's life has ended

Implemented in EndGame, RespawnEntity, and RespawnPowerup.


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