r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
Common.hpp File Reference

This file contains common definitions and constants. More...

#include <filesystem>
#include "Interfaces/IRenderer.hpp"
+ Include dependency graph for Common.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  utl
 
namespace  utl::Config
 
namespace  utl::Config::Player
 
namespace  utl::Config::Audio
 
namespace  utl::Config::Network
 
namespace  utl::Config::Window
 
namespace  utl::Config::Game
 
namespace  utl::Config::Color
 
namespace  utl::Path
 
namespace  utl::Path::Icons
 
namespace  utl::Path::Audio
 
namespace  utl::Path::Font
 
namespace  utl::Path::Plugin
 
namespace  utl::Path::Texture
 

Variables

constexpr auto utl::Config::Player::DEFAULT_PLAYER_NAME = "player"
 
constexpr auto utl::Config::Audio::DEFAULT_AUDIO_VOLUME = 0.5F
 
constexpr auto utl::Config::Audio::DEFAULT_AUDIO_MUTED = false
 
constexpr auto utl::Config::Network::DEFAULT_NETWORK_HOST = "127.0.0.1"
 
constexpr auto utl::Config::Network::DEFAULT_NETWORK_PORT = 2560
 
constexpr auto utl::Config::Window::DEFAULT_WINDOW_WIDTH = 1920
 
constexpr auto utl::Config::Window::DEFAULT_WINDOW_HEIGHT = 1080
 
constexpr auto utl::Config::Window::DEFAULT_WINDOW_FRAME_LIMIT = 240
 
constexpr auto utl::Config::Window::DEFAULT_WINDOW_FULLSCREEN = false
 
constexpr auto utl::Config::Game::DEFAULT_VIDEO_QUALITY = 1
 
constexpr auto utl::Config::Game::DEFAULT_CONTROL_SCHEME = 2
 
constexpr auto utl::Config::Game::DEFAULT_SKIN_INDEX = 0
 
static constexpr eng::Color utl::Config::Color::DARK = {.r = 0U, .g = 0U, .b = 0U, .a = 255U}
 
static constexpr eng::Color utl::Config::Color::CYAN_ELECTRIC = {.r = 0U, .g = 191U, .b = 255U, .a = 255U}
 
static constexpr eng::Color utl::Config::Color::GRAY_BLUE_SUBTLE = {.r = 160U, .g = 160U, .b = 160U, .a = 255U}
 
static constexpr eng::Color utl::Config::Color::STAR_BG = {.r = 100U, .g = 100U, .b = 150U, .a = 80U}
 
static constexpr eng::Color utl::Config::Color::STAR_MID = {.r = 150U, .g = 150U, .b = 200U, .a = 120U}
 
static constexpr eng::Color utl::Config::Color::YELLOW = {.r = 255U, .g = 255U, .b = 200U, .a = 200U}
 
static constexpr eng::Color utl::Config::Color::CYAN_ELECTRIC_PARTICLES = {.r = 0U, .g = 191U, .b = 255U, .a = 100U}
 
static constexpr eng::Color utl::Config::Color::CYAN_ELECTRIC_FOREGROUND = {.r = 0U, .g = 191U, .b = 255U, .a = 180U}
 
static constexpr eng::Color utl::Config::Color::INFO_TEXT_COLOR = {.r = 180U, .g = 180U, .b = 180U, .a = 200U}
 
static constexpr eng::Color utl::Config::Color::WHITE = {.r = 255U, .g = 255U, .b = 255U, .a = 255U}
 
static constexpr eng::Color utl::Config::Color::WHITE_LOW = {.r = 255U, .g = 255U, .b = 255U, .a = 0U}
 
static constexpr eng::Color utl::Config::Color::TEXT_VALUE_COLOR = {.r = 200U, .g = 200U, .b = 255U, .a = 255U}
 
static constexpr eng::Color utl::Config::Color::WHITE_TRANS = {.r = 255U, .g = 255U, .b = 255U, .a = 100U}
 
static constexpr eng::Color utl::Config::Color::BLUE = {.r = 200U, .g = 200U, .b = 255U, .a = 150U}
 
static constexpr eng::Color utl::Config::Color::BLUE_SECOND = {.r = 50U, .g = 100U, .b = 200U, .a = 60U}
 
static constexpr eng::Color utl::Config::Color::PURPLE = {.r = 100U, .g = 50U, .b = 150U, .a = 80U}
 
static constexpr eng::Color utl::Config::Color::GREEN = {.r = 200U, .g = 255U, .b = 200U, .a = 180U}
 
static constexpr eng::Color utl::Config::Color::GREEN_READY = {0U, 255U, 100U, 255U}
 
constexpr auto utl::Path::Icons::ICON_APP = "assets/icons/icon.png"
 
constexpr auto utl::Path::Audio::AUDIO_TITLE = "assets/audio/title.mp3"
 
constexpr auto utl::Path::Audio::AUDIO_COIN = "assets/audio/coin.mp3"
 
constexpr auto utl::Path::Audio::AUDIO_BATTLE_THEME = "assets/audio/battle_theme.mp3"
 
constexpr auto utl::Path::Audio::AUDIO_INPUT = "assets/audio/input.wav"
 
constexpr auto utl::Path::Audio::AUDIO_DEATH_ALLIES = "assets/audio/deathallies.wav"
 
constexpr auto utl::Path::Audio::AUDIO_DEATH_ENEMIES = "assets/audio/deathennemies.wav"
 
constexpr auto utl::Path::Audio::AUDIO_SUPERCHARGED_SHOT = "assets/audio/shoot.wav"
 
constexpr auto utl::Path::Audio::AUDIO_BEGIN = "assets/audio/begin.wav"
 
constexpr auto utl::Path::Audio::AUDIO_GOOFY = "assets/audio/goofy.wav"
 
constexpr auto utl::Path::Audio::AUDIO_BOSS = "assets/audio/Bossmusic.mp3"
 
constexpr auto utl::Path::Font::FONTS_RTYPE = "assets/fonts/r-type.otf"
 
auto utl::Path::Plugin::PLUGIN_AUDIO_SFML
 
auto utl::Path::Plugin::PLUGIN_NETWORK_ASIO_CLIENT
 
auto utl::Path::Plugin::PLUGIN_RENDERER_SFML
 
auto utl::Path::Plugin::PLUGIN_GAME_SOLO
 
auto utl::Path::Plugin::PLUGIN_GAME_MULTI
 
constexpr auto utl::Path::Texture::TEXTURE_PLAYER = "assets/sprites/r-typesheet42.gif"
 
constexpr auto utl::Path::Texture::TEXTURE_SHOOT = "assets/sprites/shoot.gif"
 
constexpr auto utl::Path::Texture::TEXTURE_SHOOT_CHARGED = "assets/sprites/shootcharged.gif"
 
constexpr auto utl::Path::Texture::TEXTURE_SHOOT_LOADING = "assets/sprites/shootchargedloading.gif"
 
constexpr auto utl::Path::Texture::TEXTURE_ENEMY_EASY = "assets/sprites/r-typesheet5.gif"
 
constexpr auto utl::Path::Texture::TEXTURE_ENEMY_BASIC = "assets/sprites/r-typesheet5.gif"
 
constexpr auto utl::Path::Texture::TEXTURE_ENEMY_ADVANCED = "assets/sprites/r-typesheet3.gif"
 
constexpr auto utl::Path::Texture::TEXTURE_BOSS = "assets/sprites/r-typesheet14.gif"
 
constexpr auto utl::Path::Texture::TEXTURE_ENEMY_PROJECTILE = "assets/sprites/r-typesheet20.gif"
 
constexpr auto utl::Path::Texture::TEXTURE_EXPLOSION = "assets/sprites/r-typesheet44.gif"
 
constexpr auto utl::Path::Texture::TEXTURE_STAGE1_FLOOR = "assets/sprites/floorstage1.png"
 
constexpr auto utl::Path::Texture::TEXTURE_STAGE1_CEILING = "assets/sprites/ceillingstage1.png"
 
constexpr auto utl::Path::Texture::TEXTURE_SCORE_COUNTER_BG = "assets/sprites/counter.png"
 
constexpr auto utl::Path::Texture::TEXTURE_SCORE_DIGIT_0 = "assets/sprites/counter0.png"
 
constexpr auto utl::Path::Texture::TEXTURE_SCORE_DIGIT_1 = "assets/sprites/counter1.png"
 
constexpr auto utl::Path::Texture::TEXTURE_SCORE_DIGIT_2 = "assets/sprites/counter2.png"
 
constexpr auto utl::Path::Texture::TEXTURE_SCORE_DIGIT_3 = "assets/sprites/counter3.png"
 
constexpr auto utl::Path::Texture::TEXTURE_SCORE_DIGIT_4 = "assets/sprites/counter4.png"
 
constexpr auto utl::Path::Texture::TEXTURE_SCORE_DIGIT_5 = "assets/sprites/counter5.png"
 
constexpr auto utl::Path::Texture::TEXTURE_SCORE_DIGIT_6 = "assets/sprites/counter6.png"
 
constexpr auto utl::Path::Texture::TEXTURE_SCORE_DIGIT_7 = "assets/sprites/counter7.png"
 
constexpr auto utl::Path::Texture::TEXTURE_SCORE_DIGIT_8 = "assets/sprites/counter8.png"
 
constexpr auto utl::Path::Texture::TEXTURE_SCORE_DIGIT_9 = "assets/sprites/counter9.png"
 
constexpr auto utl::Path::Texture::ICON_PATH = "assets/icons/icon.png"
 

Detailed Description

This file contains common definitions and constants.

Definition in file Common.hpp.