Namespaces | |
| namespace | cli |
| namespace | Config |
| namespace | GameConfig |
| namespace | Path |
| namespace | srv |
Classes | |
| class | Clock |
| Class for clock. More... | |
| class | Event |
| Event structure for inter-component communication. More... | |
| class | EventBus |
| Thread-safe event bus for decoupled component communication. More... | |
| struct | EventConnect |
| class | EventStats |
| Event statistics structure. More... | |
| interface | IPlugin |
| Interface for plugins. More... | |
| class | Logger |
| Class for logging. More... | |
| class | PluginLoader |
| Modern, type-safe plugin loader. More... | |
| struct | SharedLib |
| Handle to a dynamic library with RAII. More... | |
Typedefs | |
| using | LibHandle |
| using | EntryPointFn = IPlugin *(*)() |
Functions | |
| std::pair< float, float > | calculateSpriteCenter (const float x, const float y, const float spriteWidth, const float spriteHeight, const float scale) |
| Calculate the center position of a sprite. | |
| std::pair< float, float > | calculateHitboxOffsets (const float spriteWidth, const float spriteHeight, const float scale) |
| Calculate hitbox offsets to center the hitbox on the sprite. | |
| std::pair< float, float > | calculateHitboxOffsetsRelative (const float x, const float y, const float spriteWidth, const float spriteHeight, const float scale) |
| Calculate hitbox offsets relative to sprite position. | |
| std::vector< char > | readFile (const std::string &filename) |
| std::unordered_map< std::string, std::string > | getEnvMap (const char *const *env) |
Variables | |
| static constexpr std::uint32_t | NETWORK_CLIENT = 1 |
| static constexpr std::uint32_t | NETWORK_SERVER = 2 |
| static constexpr std::uint32_t | GAME_LOGIC = 3 |
| static constexpr std::uint32_t | RENDERING_ENGINE = 4 |
| using utl::EntryPointFn = IPlugin *(*)() |
Definition at line 78 of file PluginLoader.hpp.
| using utl::LibHandle |
Definition at line 34 of file PluginLoader.hpp.
|
strong |
|
strong |
Event types for inter-component communication.
|
strong |
| Enumerator | |
|---|---|
| INFO | |
| WARNING | |
Definition at line 17 of file Logger.hpp.
|
strong |
| Enumerator | |
|---|---|
| AUDIO | |
| NETWORK_CLIENT | |
| NETWORK_SERVER | |
| RENDERER | |
| GAME_CLIENT | |
| GAME_SERVER | |
| UNKNOWN | |
Definition at line 21 of file IPlugin.hpp.
|
inline |
Calculate hitbox offsets to center the hitbox on the sprite.
| spriteWidth | Sprite width |
| spriteHeight | Sprite height |
| scale | Sprite scale |
Definition at line 35 of file HitboxUtils.hpp.
Referenced by gme::Game::createPlayer(), gme::GameSolo::createPlayer(), gme::PlayerControllerMulti::createPlayer(), gme::ProjectileManager::createProjectile(), and gme::GameMulti::handleWorldStateUpdate().
Here is the caller graph for this function:
|
inline |
Calculate hitbox offsets relative to sprite position.
| x | Sprite X position |
| y | Sprite Y position |
| spriteWidth | Sprite width |
| spriteHeight | Sprite height |
| scale | Sprite scale |
Definition at line 50 of file HitboxUtils.hpp.
References calculateSpriteCenter().
Referenced by gme::SpawnSystem::spawnEnemy(), and gme::SpawnSystem::spawnWave().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Calculate the center position of a sprite.
| x | Sprite X position |
| y | Sprite Y position |
| spriteWidth | Sprite width |
| spriteHeight | Sprite height |
| scale | Sprite scale |
Definition at line 22 of file HitboxUtils.hpp.
Referenced by calculateHitboxOffsetsRelative().
Here is the caller graph for this function:
|
nodiscard |
|
nodiscard |
|
staticconstexpr |
Definition at line 19 of file Event.hpp.
Referenced by srv::AsioServer::broadcastGameStart(), gme::RTypeServer::checkGameOver(), srv::AsioServer::handleConnect(), srv::AsioServer::handleDisconnect(), srv::AsioServer::handleEntityEvent(), srv::AsioServer::handleStartGameRequest(), gme::RTypeServer::RTypeServer(), and gme::RTypeServer::update().
|
staticconstexpr |
Definition at line 17 of file Event.hpp.
Referenced by gme::ServerScene::connectServer(), gme::CreateRoomScene::createRoom(), gme::JoinRoomScene::event(), gme::GameMulti::handleWorldStateUpdate(), gme::WaitingRoomScene::leaveLobby(), gme::JoinRoomScene::refreshRoomList(), gme::PlayerControllerMulti::sendInputToServer(), and gme::WaitingRoomScene::startGame().
|
staticconstexpr |
Definition at line 18 of file Event.hpp.
Referenced by srv::AsioServer::broadcastGameStart(), and gme::RTypeServer::broadcastWorldState().
|
staticconstexpr |
Definition at line 20 of file Event.hpp.
Referenced by eng::AsioClient::handleConnectAccept().