SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
Updatable Class Reference

Base class for objects that can be updated in the game loop. More...

#include <Updatable.h>

Inheritance diagram for Updatable:
Inheritance graph

Protected Member Functions

 Updatable (const Updatable &)=delete
 
Updatableoperator= (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.
 
UpdateRegistrationCommandptrUpdateRegistrationCmd
 Pointer to the update registration command for the GameObject.
 
UpdateDeregistrationCommandptrUpdateDeregistrationCmd
 Pointer to the update deregistration command for the GameObject.
 
UpdatableManager::StorageListRef pMyDeleteRef
 Reference to the storage list iterator for the GameObject.
 

Friends

class UpdatableAttorney
 

Detailed Description

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.

Member Function Documentation

◆ Update()

virtual void Updatable::Update ( )
inlineprivatevirtual

Virtual method to be implemented by derived classes for update functionality.

Reimplemented in Canvas.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: