R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
ecs::CollisionLayers Namespace Reference

Variables

constexpr std::uint32_t PLAYER = (1 << 0)
 
constexpr std::uint32_t ENEMY = (1 << 1)
 
constexpr std::uint32_t PLAYER_PROJECTILE = (1 << 2)
 
constexpr std::uint32_t ENEMY_PROJECTILE = (1 << 3)
 
constexpr std::uint32_t WALL = (1 << 4)
 
constexpr std::uint32_t COLLECTIBLE = (1 << 5)
 
constexpr std::uint32_t PLAYER_MODULE = (1 << 6)
 
constexpr std::uint32_t MASK_ALL = 0xFFFFFFFF
 
constexpr std::uint32_t MASK_NONE = 0x00000000
 
constexpr std::uint32_t MASK_PLAYER = ENEMY | ENEMY_PROJECTILE | WALL | COLLECTIBLE
 
constexpr std::uint32_t MASK_ENEMY = PLAYER | PLAYER_PROJECTILE | PLAYER_MODULE
 
constexpr std::uint32_t MASK_PLAYER_PROJECTILE = ENEMY | WALL
 
constexpr std::uint32_t MASK_ENEMY_PROJECTILE = PLAYER | PLAYER_MODULE | WALL
 
constexpr std::uint32_t MASK_WALL = PLAYER | ENEMY | PLAYER_PROJECTILE | ENEMY_PROJECTILE
 
constexpr std::uint32_t MASK_COLLECTIBLE = PLAYER
 
constexpr std::uint32_t MASK_PLAYER_MODULE = ENEMY | ENEMY_PROJECTILE
 

Variable Documentation

◆ COLLECTIBLE

constexpr std::uint32_t ecs::CollisionLayers::COLLECTIBLE = (1 << 5)
constexpr

Definition at line 27 of file CollisionLayers.hpp.

◆ ENEMY

constexpr std::uint32_t ecs::CollisionLayers::ENEMY = (1 << 1)
constexpr

Definition at line 23 of file CollisionLayers.hpp.

◆ ENEMY_PROJECTILE

constexpr std::uint32_t ecs::CollisionLayers::ENEMY_PROJECTILE = (1 << 3)
constexpr

Definition at line 25 of file CollisionLayers.hpp.

◆ MASK_ALL

constexpr std::uint32_t ecs::CollisionLayers::MASK_ALL = 0xFFFFFFFF
constexpr

Definition at line 31 of file CollisionLayers.hpp.

◆ MASK_COLLECTIBLE

constexpr std::uint32_t ecs::CollisionLayers::MASK_COLLECTIBLE = PLAYER
constexpr

Definition at line 50 of file CollisionLayers.hpp.

◆ MASK_ENEMY

constexpr std::uint32_t ecs::CollisionLayers::MASK_ENEMY = PLAYER | PLAYER_PROJECTILE | PLAYER_MODULE
constexpr

Definition at line 38 of file CollisionLayers.hpp.

◆ MASK_ENEMY_PROJECTILE

constexpr std::uint32_t ecs::CollisionLayers::MASK_ENEMY_PROJECTILE = PLAYER | PLAYER_MODULE | WALL
constexpr

Definition at line 44 of file CollisionLayers.hpp.

◆ MASK_NONE

constexpr std::uint32_t ecs::CollisionLayers::MASK_NONE = 0x00000000
constexpr

Definition at line 32 of file CollisionLayers.hpp.

◆ MASK_PLAYER

constexpr std::uint32_t ecs::CollisionLayers::MASK_PLAYER = ENEMY | ENEMY_PROJECTILE | WALL | COLLECTIBLE
constexpr

Definition at line 35 of file CollisionLayers.hpp.

◆ MASK_PLAYER_MODULE

constexpr std::uint32_t ecs::CollisionLayers::MASK_PLAYER_MODULE = ENEMY | ENEMY_PROJECTILE
constexpr

Definition at line 53 of file CollisionLayers.hpp.

Referenced by ecs::PrefabFactory::createOrbitalModule().

◆ MASK_PLAYER_PROJECTILE

constexpr std::uint32_t ecs::CollisionLayers::MASK_PLAYER_PROJECTILE = ENEMY | WALL
constexpr

Definition at line 41 of file CollisionLayers.hpp.

◆ MASK_WALL

constexpr std::uint32_t ecs::CollisionLayers::MASK_WALL = PLAYER | ENEMY | PLAYER_PROJECTILE | ENEMY_PROJECTILE
constexpr

Definition at line 47 of file CollisionLayers.hpp.

◆ PLAYER

constexpr std::uint32_t ecs::CollisionLayers::PLAYER = (1 << 0)
constexpr

Definition at line 22 of file CollisionLayers.hpp.

◆ PLAYER_MODULE

constexpr std::uint32_t ecs::CollisionLayers::PLAYER_MODULE = (1 << 6)
constexpr

Definition at line 28 of file CollisionLayers.hpp.

Referenced by ecs::PrefabFactory::createOrbitalModule().

◆ PLAYER_PROJECTILE

constexpr std::uint32_t ecs::CollisionLayers::PLAYER_PROJECTILE = (1 << 2)
constexpr

Definition at line 24 of file CollisionLayers.hpp.

◆ WALL

constexpr std::uint32_t ecs::CollisionLayers::WALL = (1 << 4)
constexpr

Definition at line 26 of file CollisionLayers.hpp.