Wraith  0.1.5
Basic 3D game engine in C++

Updatable control update callback and registration/deregistration. More...

#include <Updatable.h>

Inheritance diagram for Updatable:
Inheritance graph
Collaboration diagram for Updatable:
Collaboration graph

Public Member Functions

 Updatable ()
 Default constructor. More...
 
 Updatable (const Updatable &)=default
 
Updatableoperator= (const Updatable &)=default
 
 Updatable (Updatable &&)=default
 
Updatableoperator= (Updatable &&)=default
 

Protected Member Functions

void submitUpdateRegistration ()
 Submit update registration to current scene. More...
 
void submitUpdateDeregistration ()
 Submit update deregistration to current scene. More...
 
bool isRegisteredForUpdate () const
 Query if this object is registered for update. More...
 

Private Member Functions

void setDeleteReference (const UpdatableManager::StorageListReference &)
 
UpdatableManager::StorageListReference getDeleteReference () const
 
void registerToScene ()
 Registers to the current scene. More...
 
void deregisterFromScene ()
 Deregisters from the current scene. More...
 
virtual void update ()
 Update callback for this object. More...
 

Static Private Member Functions

static void DebugPrint (const std::string &message)
 

Private Attributes

UpdatableManager::StorageListReference _deleteReference
 
UpdateRegistrationCommand_pUpdateRegistrationCommand
 
UpdateDeregistrationCommand_pUpdateDeregistrationCommand
 
RegistrationState _currentRegistrationState
 

Static Private Attributes

static const std::string DEBUG_TITLE_MESSAGE = "Updatable_DEBUG: "
 

Friends

class UpdatableAttorney
 

Detailed Description

Updatable control update callback and registration/deregistration.

Constructor & Destructor Documentation

◆ Updatable()

Updatable::Updatable ( )

Default constructor.

Initializes its UpdateRegistrationCommand and UpdateDeregistrationCommand. Also sets its RegistrationState to RegistrationState::CURRENTLY_DEREGISTERED.


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