Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
components.hpp File Reference

Components shared by the client and the server. More...

#include <aegis2d/core/math.hpp>
#include <aegis2d/ecs/entity.hpp>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <aegis2d/shmup/components.hpp>

Go to the source code of this file.

Classes

struct  aegis2d::ecs::Transform
 Where an entity is. More...
 
struct  aegis2d::ecs::Velocity
 How fast an entity moves. More...
 
struct  aegis2d::ecs::Sprite
 What an entity looks like. More...
 
struct  aegis2d::ecs::Animation
 Frames of the entity's Sprite shown in turn, at a steady rate. More...
 
struct  aegis2d::ecs::Collider
 Axis-aligned box an entity collides with. More...
 
struct  aegis2d::ecs::Health
 How much damage an entity can still take. More...
 
struct  aegis2d::ecs::Damage
 How much damage an entity deals to what it hits. More...
 
struct  aegis2d::ecs::Owner
 Entity that created this one, e.g. the player who fired a missile. More...
 
struct  aegis2d::ecs::Score
 Points a player has earned. More...
 
struct  aegis2d::ecs::ScoreValue
 Points earned by the player who destroys this entity. More...
 
struct  aegis2d::ecs::Lives
 Lives of a player, and how it comes back after losing one. More...
 
struct  aegis2d::ecs::PlayerInput
 Actions a player holds during the tick, as received from its client. More...
 
struct  aegis2d::ecs::DestroyAfterAnimation
 Entity destroyed once its Animation has played to the end: a visual effect that lasts as long as its clip, such as an explosion. More...
 
struct  aegis2d::ecs::OffscreenDespawn
 Entity destroyed once it has left the play area for good. More...
 
struct  aegis2d::ecs::SineMotion
 Sine wave added to an entity's movement, like an enemy weaving up and down. More...
 
struct  aegis2d::ecs::NetworkId
 Identity of an entity shared by the server and the clients. More...
 

Namespaces

namespace  aegis2d
 Root namespace of the engine.
 
namespace  aegis2d::ecs
 Entity-Component-System used by client and server.
 

Enumerations

enum class  aegis2d::ecs::Action : std::uint8_t {
  aegis2d::ecs::Up = 1U << 0U , aegis2d::ecs::Down = 1U << 1U , aegis2d::ecs::Left = 1U << 2U , aegis2d::ecs::Right = 1U << 3U ,
  aegis2d::ecs::Fire = 1U << 4U
}
 Actions a player can hold, one bit each in PlayerInput. More...
 

Detailed Description

Components shared by the client and the server.