Brunot
Loading...
Searching...
No Matches
Engine Class Reference

#include <Engine.h>

Collaboration diagram for Engine:
[legend]

Public Member Functions

 Engine ()
 Engine (Engine &other)=delete
 ~Engine ()
auto run () -> int

Static Public Member Functions

static auto shutdown (int code) -> void
template<std::derived_from< System > system>
static auto getSystem () -> system *
 A function to get a system.
static auto getRoot () -> Root *

Static Private Member Functions

static auto getSingleton () -> Engine *

Private Attributes

Node rootNode
Rootroot
bool shouldShutdown {false}
int shutdownCode {0}
double lastFrameTime {0}

Constructor & Destructor Documentation

◆ Engine() [1/2]

Engine::Engine ( )
Here is the caller graph for this function:

◆ Engine() [2/2]

Engine::Engine ( Engine & other)
delete
Here is the call graph for this function:

◆ ~Engine()

Engine::~Engine ( )

Member Function Documentation

◆ getRoot()

auto Engine::getRoot ( ) ->Root *
inlinestatic
Returns
a pointer to the Root of the Engine tree
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSingleton()

auto Engine::getSingleton ( ) ->Engine *
staticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSystem()

template<std::derived_from< System > system>
auto Engine::getSystem ( ) ->system *
inlinestatic

A function to get a system.

Currently will be quite inefficient if any Systems have many children, (e.g. Action, Scene)

Template Parameters
systemThe type of system to return
Parameters
typeIdthe ID of the system to return
Returns
a pointer to the system requested
Here is the call graph for this function:

◆ run()

auto Engine::run ( ) ->int
Here is the call graph for this function:
Here is the caller graph for this function:

◆ shutdown()

auto Engine::shutdown ( int code) ->void
static
Here is the caller graph for this function:

Member Data Documentation

◆ lastFrameTime

double Engine::lastFrameTime {0}
private

◆ root

Root* Engine::root
private

◆ rootNode

Node Engine::rootNode
private

◆ shouldShutdown

bool Engine::shouldShutdown {false}
private

◆ shutdownCode

int Engine::shutdownCode {0}
private

The documentation for this class was generated from the following files:
  • /home/egrazil/sites/Brunot/The House/source/Framework/Engine.h
  • /home/egrazil/sites/Brunot/The House/source/Framework/Engine.cpp