#include <Updater.h>
Inheritance diagram for ASR::Updater:
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 |
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.
ASR::Updater::Updater | ( | void | ) |
ASR::Updater::~Updater | ( | void | ) | [virtual] |
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.