![]() |
PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
|
Classes | |
struct | Position |
struct | Velocity |
struct | config |
register every components by extraction from a tuple More... | |
class | user::MovementSystem |
class | user::Math |
class | user::DisplaySystem |
class | Game |
Create a Game from CustomisableEngine<GraphicSharedLoader, Registry> More... | |
Typedefs | |
using | config::components = std::tuple<Position, Velocity> |
Functions | |
std::ostream & | operator<< (std::ostream &os, Position const &c) |
std::ostream & | operator<< (std::ostream &os, Velocity const &c) |
user::MovementSystem::MovementSystem (std::string name) | |
void | user::MovementSystem::lambda (ecs::Registry &r) override |
int | user::Math::sqrt (int a) |
user::DisplaySystem::DisplaySystem (Math &math) | |
void | user::DisplaySystem::lambda (ecs::Registry &r) override |
Game::Game (std::string graphic) | |
Construct a new Game object. | |
int | Game::start () override |
start the game | |
void | Game::initHandler () override |
init the game using inherited methods | |
void | Game::eventHandler () override |
handle event the game using inherited methods | |
void | Game::updateHandler () override |
update event the game using inherited methods | |
void | Game::displayHandler () override |
render the game using inherited methods | |
void | Game::destroyHandler () override |
free game's data using inherited methods | |
std::map< std::string, std::vector< std::string > > | sortSharedLibrary (std::vector< std::string > files) |
sort shared library | |
int | main () |
Variables | |
float | Position::x |
float | Position::y |
float | Velocity::x |
float | Velocity::y |
std::string | user::MovementSystem::_name |
Math & | user::DisplaySystem::_math |
const std::string | user::DisplaySystem::RED = "\033[31m" |
const std::string | user::DisplaySystem::RESET = "\033[0m" |
graphic::IWindow * | Game::window |
graphic::IEvent * | Game::event |
graphic::IPolygon * | Game::poly_star |
graphic::IPolygon * | Game::poly_heart |
graphic::ISprite * | Game::sprite |
graphic::ICamera * | Game::camera |
graphic::IModel * | Game::model |
graphic::IKeyboard * | Game::keyboard |
graphic::IMouse * | Game::mouse |
|
inlineoverrideprotectedvirtual |
free game's data using inherited methods
Implements Engine.
|
inlineoverrideprotectedvirtual |
render the game using inherited methods
Implements Engine.
|
inlineoverrideprotectedvirtual |
handle event the game using inherited methods
Implements Engine.
|
inline |
Construct a new Game object.
graphic |
|
inlineoverrideprotectedvirtual |
init the game using inherited methods
Implements Engine.
|
inlineoverridevirtual |
Implements ecs::System.
|
inlineoverridevirtual |
Implements ecs::System.
std::map< std::string, std::vector< std::string > > sortSharedLibrary | ( | std::vector< std::string > | files | ) |
sort shared library
files |
|
inlineoverridevirtual |
|
inlineoverrideprotectedvirtual |
update event the game using inherited methods
Implements Engine.