Annwvyn::AnnSubSystem Class Reference

Parent class of all Annwvyn SubSystem. More...

#include <AnnSubsystem.hpp>

Inheritance diagram for Annwvyn::AnnSubSystem:
Collaboration diagram for Annwvyn::AnnSubSystem:

Public Member Functions

 AnnSubSystem (const std::string &systemName)
 Construct a SubSystem. More...
 
virtual ~AnnSubSystem ()
 Destruct a SubSystem. More...
 

Protected Member Functions

virtual void update ()
 To be called by AnnEngine : update the subsystem for the next frame. More...
 
virtual bool needUpdate ()
 To be called by AnnEngine : Return if the subsystem wants to be updated. More...
 

Protected Attributes

std::string name
 Name of the subsystem. More...
 

Friends

class AnnEngine
 

Detailed Description

Parent class of all Annwvyn SubSystem.

Definition at line 13 of file AnnSubsystem.hpp.

Constructor & Destructor Documentation

◆ AnnSubSystem()

AnnSubSystem::AnnSubSystem ( const std::string systemName)

Construct a SubSystem.

Definition at line 9 of file AnnSubSystem.cpp.

◆ ~AnnSubSystem()

AnnSubSystem::~AnnSubSystem ( )
virtual

Destruct a SubSystem.

Definition at line 15 of file AnnSubSystem.cpp.

Member Function Documentation

◆ needUpdate()

bool AnnSubSystem::needUpdate ( )
protectedvirtual

To be called by AnnEngine : Return if the subsystem wants to be updated.

Reimplemented in Annwvyn::AnnScriptManager, Annwvyn::AnnConsole, Annwvyn::AnnUserSubSystem, and Annwvyn::AnnSceneryManager.

Definition at line 20 of file AnnSubSystem.cpp.

◆ update()

void AnnSubSystem::update ( )
protectedvirtual

Friends And Related Function Documentation

◆ AnnEngine

friend class AnnEngine
friend

Definition at line 23 of file AnnSubsystem.hpp.

Member Data Documentation

◆ name

std::string Annwvyn::AnnSubSystem::name
protected

Name of the subsystem.

Definition at line 32 of file AnnSubsystem.hpp.


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