ASR::Updater Class Reference

An updater is used when something needs to be updated on a per-frame basis. More...

#include <Updater.h>

Inheritance diagram for ASR::Updater:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Updater (void)
virtual ~Updater (void)
virtual bool updateBeforeFrame (const FrameEvent &e, const InputReader *inputDevice)=0
 Called each frame to perform the "update".
virtual bool updateAfterFrame (const FrameEvent &e, const InputReader *inputDevice)=0

Detailed Description

An updater is used when something needs to be updated on a per-frame basis.

This is intended to be used as a base class and can be hooked into GameListener so that it will be updated each frame. This prevents a huge number of FrameListeners when each one is only interested in updating something based on a limited number of keys. A CameraUpdater is an example of a usage of this class.

Definition at line 20 of file Updater.h.


Constructor & Destructor Documentation

ASR::Updater::Updater ( void   ) 

Definition at line 8 of file Updater.cpp.

00009         {
00010         }

ASR::Updater::~Updater ( void   )  [virtual]

Definition at line 14 of file Updater.cpp.

00015         {
00016         }


Member Function Documentation

virtual bool ASR::Updater::updateAfterFrame ( const FrameEvent &  e,
const InputReader *  inputDevice 
) [pure virtual]

Implemented in ASR::LevelStatusVisualizer, ASR::RTSCameraUpdater, ASR::UnitSelecter, and ASR::ClientUpdater.

virtual bool ASR::Updater::updateBeforeFrame ( const FrameEvent &  e,
const InputReader *  inputDevice 
) [pure virtual]

Called each frame to perform the "update".

Return true if rendering should continue, false otherwise.

Implemented in ASR::LevelStatusVisualizer, ASR::RTSCameraUpdater, ASR::UnitSelecter, and ASR::ClientUpdater.


The documentation for this class was generated from the following files:
Generated on Sun Jun 25 19:23:44 2006 for Valors End by  doxygen 1.4.7