#include <game.hpp>
|
typedef std::function< void(const std::string &)> | Callback |
|
◆ Callback
◆ Engine() [1/2]
◆ Engine() [2/2]
Engine::Engine |
( |
const std::string & |
f | ) |
|
|
inlineprivate |
◆ createInstance() [1/2]
void Engine::createInstance |
( |
| ) |
|
|
static |
◆ createInstance() [2/2]
void Engine::createInstance |
( |
const std::string & |
fileName | ) |
|
|
static |
◆ destroyInstance()
void Engine::destroyInstance |
( |
| ) |
|
|
static |
◆ getInstance()
Engine * Engine::getInstance |
( |
| ) |
|
|
static |
◆ getRandomLine()
unsigned int Engine::getRandomLine |
( |
unsigned int |
max | ) |
|
|
private |
◆ getWord()
std::string Engine::getWord |
( |
| ) |
|
◆ registerNewWordCallback()
void Engine::registerNewWordCallback |
( |
Callback |
| ) |
|
◆ setNewWord()
void Engine::setNewWord |
( |
| ) |
|
◆ setWord()
void Engine::setWord |
( |
const std::string & |
w | ) |
|
◆ start()
void Engine::start |
( |
unsigned int |
interval | ) |
|
◆ callbacks
◆ currentWord
std::string Engine::currentWord |
|
private |
◆ instance
◆ mut
◆ pastWords
std::vector<std::string> Engine::pastWords |
|
private |
◆ started
bool Engine::started = false |
|
private |
◆ wordFile
std::string Engine::wordFile |
|
private |
The documentation for this class was generated from the following files: