RTYPE TECHNICAL DOCUMENTATION
  • Introduction
  • Classes
    • utils::InputMap
    • utils::Window
    • utils::constant::ButtonValue
    • network::Client
    • network::LockedQueue
    • network::Server
    • ecs::EnemyFactory
    • ecs::Engine
    • ecs::Entity
    • ecs::Event
    • ecs::Registry
    • ecs::SparseArray
    • ecs::World
    • ecs::WorldManager
    • ecs::component::Activable
    • ecs::component::Animated
    • ecs::component::Animated::AnimFrame
    • ecs::component::AttackAI
    • ecs::component::AttackAI::Action
    • ecs::component::AttackAI::AI
    • ecs::component::AttackAI::AI::Pattern
    • ecs::component::Controllable
    • ecs::component::Direction
    • ecs::component::Drawable
    • ecs::component::EntityType
    • ecs::component::Faction
    • ecs::component::FollowEntity
    • ecs::component::Health
    • ecs::component::Hitbox
    • ecs::component::MovementAI
    • ecs::component::MovementAI::AI
    • ecs::component::NetworkId
    • ecs::component::Parallax
    • ecs::component::Position
    • ecs::component::Projectile
    • ecs::component::Score
    • ecs::component::Shootable
    • ecs::component::Size
    • ecs::component::Text
    • ecs::component::textColor
    • ecs::component::Velocity
    • ecs::component::Weapon
    • audio::AudioManager
    • asset::AssetLoader
    • anim::Animation
  • Namespaces
    • utils
    • utils::constant
    • network
    • ecs
    • ecs::component
    • ecs::systems
    • audio
    • asset
    • anim
  • Modules
    • Input
  • Files
    • src
    • src/client
    • Animation.cpp
    • Animation.hpp
    • AssetLoader.cpp
    • AssetLoader.hpp
    • AudioManager.cpp
    • AudioManager.hpp
    • entrypoint.cpp
    • GetWorld.cpp
    • GetWorld.hpp
    • NetworkClient.cpp
    • NetworkClient.hpp
    • src/ecs
    • src/ecs/components
    • src/ecs/components/client
    • Activable.hpp
    • Animated.hpp
    • Controllable.hpp
    • Drawable.hpp
    • Hitbox.hpp
    • Parallax.hpp
    • Shootable.hpp
    • Text.hpp
    • src/ecs/components/server
    • AttackAI.cpp
    • AttackAI.hpp
    • FollowEntity.hpp
    • Projectile.hpp
    • Direction.hpp
    • EntityType.hpp
    • Faction.hpp
    • Health.hpp
    • MovementAI.cpp
    • MovementAI.hpp
    • NetworkId.hpp
    • Position.hpp
    • Score.hpp
    • Size.hpp
    • Velocity.hpp
    • Weapon.hpp
    • src/ecs/systems
    • src/ecs/systems/client
    • Animate.hpp
    • Draw.hpp
    • ExecuteOnce.hpp
    • HandleIncomingMessages.hpp
    • HandleParallaxBounds.hpp
    • HandleSFMLEvents.hpp
    • HandleSFMLKeys.hpp
    • HealthBar.hpp
    • MenuSelect.hpp
    • ScoreUpdate.hpp
    • SendDirection.hpp
    • src/ecs/systems/server
    • DeathUpdate.hpp
    • FollowEntitySystem.hpp
    • HandleIncomingMessage.hpp
    • PlayerHealthUpdate.hpp
    • PositionUpdate.hpp
    • ProjectileCollision.hpp
    • RunAttackAI.hpp
    • Waves.hpp
    • ManageClientEvents.hpp
    • Movement.hpp
    • PositionLogger.hpp
    • RunMovementAI.hpp
    • EnemyFactory.cpp
    • EnemyFactory.hpp
    • Engine.hpp
    • Entity.hpp
    • Event.hpp
    • LockedQueue.hpp
    • Registry.hpp
    • SparseArray.hpp
    • World.hpp
    • WorldManager.cpp
    • WorldManager.hpp
    • src/server
    • entrypoint.cpp
    • Server.cpp
    • Server.hpp
    • src/utils
    • Constant.hpp
    • InputMap.cpp
    • InputMap.hpp
    • Window.cpp
    • README.md
  • Pages
    • deprecated
  • GitHub
Powered by GitBook
On this page
  • Classes
  • Types
  • Functions
  • Attributes
  • Types Documentation
  • enum PacketType
  • enum ButtonActionType
  • enum ButtonType
  • using chrono
  • using chronoDuration
  • Functions Documentation
  • function getPacketTypeKey
  • Attributes Documentation
  • variable npos
  • variable mapWidth
  • variable mapHeight
  • variable maxPlayerHealth
  • variable sizeHealthBar
  • variable buttonValueMap
  • variable mapPacketType
  1. Namespaces

utils::constant

Classes

Name

struct

Types

Name

enum

enum

enum

using std::chrono::high_resolution_clock

using std::chrono::duration< double, std::milli >

Functions

Name

int

Attributes

Name

const std::size_t

short

short

short

short

Types Documentation

enum PacketType

Enumerator
Value
Description

PLAYER_MOVE

8

PLAYER_SHOT

2

PLAYER_CHARGED_SHOT

PLAYER_POWERUP

ENTITY_MOVE

ENTITY_SPAWN

ENTITY_DEATH

ENTITY_DAMAGE

ENTITY_HEAL

NEW_WAVE

BOSS_STAGE

GAME_OVER

MULTIPLAYER_INFO

HEALTH_UPDATE

NONE

enum ButtonActionType

Enumerator
Value
Description

PLAY_ACTION

QUIT_ACTION

OPTIONS_ACTION

CONNECT_ACTION

enum ButtonType

Enumerator
Value
Description

PLAY

OPTION

QUIT

PLAY_HOVER

OPTION_HOVER

QUIT_HOVER

ROOM

ROOM_HOVER

ROOM_TEXT

OPTION_INTERFACE

SOUND_LEFT

SOUND_RIGHT

SOUND_LEFT_HOVER

SOUND_RIGHT_HOVER

MUSIC_LEFT

MUSIC_RIGHT

MUSIC_RIGHT_HOVER

MUSIC_LEFT_HOVER

HOW_TO

HOW_TO_HOVER

SLIDE_MUSIC

SLIDE_SOUND

SOUND_BAR

SETTINGS

SETTINGS_HOVER

OPTIONS_TEXT

PLANET

UNDEFINED

using chrono

using utils::constant::chrono = typedef std::chrono::high_resolution_clock;

using chronoDuration

using utils::constant::chronoDuration = typedef std::chrono::duration<double, std::milli>;

Functions Documentation

function getPacketTypeKey

static int getPacketTypeKey(
    PacketType type
)

Attributes Documentation

variable npos

static const std::size_t npos = -1;

variable mapWidth

static short mapWidth = 1920;

variable mapHeight

static short mapHeight = 1080;

variable maxPlayerHealth

static short maxPlayerHealth = 100;

variable sizeHealthBar

static short sizeHealthBar = 282;

variable buttonValueMap

static const std::map< ButtonType, ButtonValue > buttonValueMap {
            {PLAY, {324, 2079, 916, 292, 300, 100, 300, 280}},
            {OPTION, {3651, 2079, 916, 292, 300, 100, 300, 480}},
            {QUIT, {4760, 2079, 916, 292, 300, 100, 300, 680}},
            {PLAY_HOVER, {220, 2449, 1114, 356, 300, 100, 300, 280}},
            {OPTION_HOVER, {3542, 2456, 1114, 356, 300, 100, 300, 450}},
            {QUIT_HOVER, {4670, 2451, 1114, 356, 300, 100, 300, 620}},
            {ROOM, {326, 456, 1114, 356, 400, 100, 850, 250}},
            {OPTION_INTERFACE, {1692, 168, 1589, 1790, 692, 772, 800, 100}},
            {SOUND_LEFT, {3813, 178, 255, 256, 55, 55, 1260, 560}},
            {SOUND_RIGHT, {3489, 434, 255, 256, 55, 55, 1325, 560}},
            {SOUND_LEFT_HOVER, {3489, 178, 255, 256, 55, 55, 1260, 560}},
            {SOUND_RIGHT_HOVER, {3813, 434, 255, 256, 55, 55, 1325, 560}},
            {MUSIC_LEFT, {3813, 178, 255, 256, 55, 55, 1260, 360}},
            {MUSIC_RIGHT, {3489, 434, 255, 256, 55, 55, 1325, 360}},
            {MUSIC_LEFT_HOVER, {3489, 178, 255, 256, 55, 55, 1260, 360}},
            {MUSIC_RIGHT_HOVER, {3813, 434, 255, 256, 55, 55, 1325, 360}},
            {HOW_TO, {4137, 434, 255, 256, 55, 55, 1250, 700}},
            {HOW_TO_HOVER, {4137, 178, 255, 256, 55, 55, 1250, 700}},
            {SLIDE_SOUND, {4396, 1486, 97, 146, 21, 31, 1070, 572}},
            {SLIDE_MUSIC, {4396, 1486, 97, 146, 21, 31, 1070, 372}},
            {SOUND_BAR, {3476, 1692, 2213, 168, 350, 36, 900, 370}},
            {SETTINGS, {4461, 435, 255, 255, 55, 55, 970, 700}},
            {SETTINGS_HOVER, {4461, 178, 255, 255, 55, 55, 970, 700}},

        };

variable mapPacketType

static std::map< int, PacketType > mapPacketType {
            {1, PLAYER_MOVE},
            {2, PLAYER_SHOT},
            {4, PLAYER_CHARGED_SHOT},
            {8, ENTITY_MOVE},
            {16, ENTITY_SPAWN},
            {17, ENTITY_DEATH},
            {32, ENTITY_DAMAGE},
            {34, ENTITY_HEAL},
            {64, PLAYER_POWERUP},
            {3, NEW_WAVE},
            {7, BOSS_STAGE},
            {15, GAME_OVER},
            {31, MULTIPLAYER_INFO},
            {38, HEALTH_UPDATE}
        };

Updated on 2022-11-13 at 17:21:37 +0100

PreviousutilsNextnetwork

Last updated 2 years ago

{ PLAYER_MOVE = 8, PLAYER_SHOT = 2, PLAYER_CHARGED_SHOT, PLAYER_POWERUP, ENTITY_MOVE, ENTITY_SPAWN, ENTITY_DEATH, ENTITY_DAMAGE, ENTITY_HEAL, NEW_WAVE, BOSS_STAGE, GAME_OVER, MULTIPLAYER_INFO, HEALTH_UPDATE, NONE}

{ PLAY_ACTION, QUIT_ACTION, OPTIONS_ACTION, CONNECT_ACTION}

{ PLAY, OPTION, QUIT, PLAY_HOVER, OPTION_HOVER, QUIT_HOVER, ROOM, ROOM_HOVER, ROOM_TEXT, OPTION_INTERFACE, SOUND_LEFT, SOUND_RIGHT, SOUND_LEFT_HOVER, SOUND_RIGHT_HOVER, MUSIC_LEFT, MUSIC_RIGHT, MUSIC_RIGHT_HOVER, MUSIC_LEFT_HOVER, HOW_TO, HOW_TO_HOVER, SLIDE_MUSIC, SLIDE_SOUND, SOUND_BAR, SETTINGS, SETTINGS_HOVER, OPTIONS_TEXT, PLANET, UNDEFINED}

( type)

const std::map< , >

std::map< int, >

utils::constant::ButtonValue
PacketType
ButtonActionType
ButtonType
chrono
chronoDuration
getPacketTypeKey
PacketType
npos
mapWidth
mapHeight
maxPlayerHealth
sizeHealthBar
ButtonType
ButtonValue
buttonValueMap
PacketType
mapPacketType