Base class for objects that can be updated in the game loop. More...
#include <Updatable.h>
Protected Member Functions | |
Updatable (const Updatable &)=delete | |
Updatable & | operator= (const Updatable &)=delete |
void | SubmitUpdateRegistration () |
Submits the update registration for the GameObject. | |
void | SubmitUpdateDeregistration () |
Submits the update deregistration for the GameObject. | |
Private Member Functions | |
virtual void | Update () |
Virtual method to be implemented by derived classes for update functionality. | |
void | SceneRegistration () |
Registers the GameObject for updates in the scene. | |
void | SceneDeregistration () |
Deregisters the GameObject from updates in the scene. | |
Private Attributes | |
RegistrationState | RegStateCurr |
The current registration state of the GameObject. | |
UpdateRegistrationCommand * | ptrUpdateRegistrationCmd |
Pointer to the update registration command for the GameObject. | |
UpdateDeregistrationCommand * | ptrUpdateDeregistrationCmd |
Pointer to the update deregistration command for the GameObject. | |
UpdatableManager::StorageListRef | pMyDeleteRef |
Reference to the storage list iterator for the GameObject. | |
Friends | |
class | UpdatableAttorney |
Base class for objects that can be updated in the game loop.
The Updatable
class provides a base implementation for objects that need to be updated during the game loop. It manages registration and deregistration with the UpdatableManager
and provides a virtual Update
method that can be overridden by derived classes.
|
inlineprivatevirtual |
Virtual method to be implemented by derived classes for update functionality.
Reimplemented in Canvas.