r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
cli::Client Class Reference

Class for the client. More...

#include <Client.hpp>

+ Collaboration diagram for cli::Client:

Public Member Functions

 Client (const ArgsConfig &cfg)
 
 ~Client ()=default
 
 Client (const Client &)=delete
 
Clientoperator= (const Client &)=delete
 
 Client (Client &&)=delete
 
Clientoperator= (Client &&)=delete
 
void run ()
 

Private Member Functions

void handleEvents (eng::Event &event)
 

Private Attributes

std::unique_ptr< utl::PluginLoaderm_pluginLoader
 
std::unique_ptr< eng::Enginem_engine
 
std::unique_ptr< gme::IGameClientm_game
 
std::unordered_map< eng::Key, bool > m_keysPressed
 

Detailed Description

Class for the client.

Definition at line 24 of file Client.hpp.

Constructor & Destructor Documentation

◆ Client() [1/3]

◆ ~Client()

cli::Client::~Client ( )
default

◆ Client() [2/3]

cli::Client::Client ( const Client & )
delete

◆ Client() [3/3]

cli::Client::Client ( Client && )
delete

Member Function Documentation

◆ handleEvents()

void cli::Client::handleEvents ( eng::Event & event)
private

◆ operator=() [1/2]

Client & cli::Client::operator= ( Client && )
delete

◆ operator=() [2/2]

Client & cli::Client::operator= ( const Client & )
delete

◆ run()

void cli::Client::run ( )

Definition at line 126 of file client.cpp.

References DARK, and eng::RUN.

Referenced by main().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_engine

std::unique_ptr<eng::Engine> cli::Client::m_engine
private

Definition at line 42 of file Client.hpp.

Referenced by Client(), and handleEvents().

◆ m_game

std::unique_ptr<gme::IGameClient> cli::Client::m_game
private

Definition at line 43 of file Client.hpp.

◆ m_keysPressed

std::unordered_map<eng::Key, bool> cli::Client::m_keysPressed
private

Definition at line 44 of file Client.hpp.

Referenced by handleEvents().

◆ m_pluginLoader

std::unique_ptr<utl::PluginLoader> cli::Client::m_pluginLoader
private

Definition at line 41 of file Client.hpp.

Referenced by Client().


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