R-Type
|
Namespaces | |
Input | |
Network | |
Classes | |
class | AssetManager |
Class to manage assets. More... | |
struct | CameraComponent |
struct | CollisionComponent |
struct | ControllableComponent |
struct | DamageComponent |
struct | GravityComponent |
struct | HealthComponent |
struct | InputComponent |
struct | MusicComponent |
struct | NetworkIdComponent |
struct | PressableComponent |
struct | ScoreComponent |
struct | TextComponent |
struct | TextureComponent |
struct | TransformComponent |
class | Entity |
Entity class for the game engine. More... | |
struct | NoEventData |
empty struct to describe an event that dosent provide data to subscribed functions More... | |
class | EventHandler |
class that store all the callback functions for a specific event type More... | |
class | EventManager |
class to help create and manage all the event handlers More... | |
class | GameEngine |
Game engine class, will manage all the necessary classes for the game. More... | |
class | PrefabManager |
Class to manage prefabs. More... | |
class | Registry |
Entity component system, handling entities, components and systems. More... | |
class | SceneManager |
Class managing all the scenes for the game. More... | |
class | AnimationSystem |
Class representing the sprite sheet animation system. More... | |
class | CameraSystem |
class | CollisionSystem |
class | ControlSystem |
class | DamageSystem |
struct | PollEventStruct |
class | DrawSystem |
Class representing the graphics rendering system. More... | |
class | GravitySystem |
class | InputSystem |
class | MusicSystem |
class | PositionSystem |
class | PressableSystem |
class | DeltaTime |
DeltaTime class which handles the delta time. More... | |
class | IScene |
class | Rect |
class representing a rect More... | |
class | IFont |
Interfaces for the text font. More... | |
class | IRect |
Interface for rectangle. More... | |
class | IClock |
Interface for clock. More... | |
class | ITexture |
Interface for texture. More... | |
class | IMusic |
interface for music handling More... | |
class | ISprite |
Interface for sprite. More... | |
class | IEvent |
Interface for event. More... | |
class | IView |
Interface for view. More... | |
class | IWindow |
Interface for the window. More... | |
class | SEvent |
Class representing a custom event wrapper for sf::Event. More... | |
class | Clock |
class | Texture |
Class representing a texture wrapper for sf::Texture with an associated area. More... | |
class | View |
Class representing a view wrapper for sf::View. More... | |
class | Window |
Class representing a window wrapper for sf::RenderWindow with additional functionality. More... | |
class | Text |
Class representing a text wrapper for sf::Text with basic functionality. More... | |
class | Music |
Class representing a music wrapper for sf::Music. More... | |
class | Font |
Class representing a font wrapper for sf::Font. More... | |
class | Sprite |
Class representing a sprite wrapper for sf::Sprite with additional functionality. More... | |
class | InputManager |
class | Vector2 |
a Vector2 class More... | |
Typedefs | |
using | EventType = std::size_t |
value to describe the event type More... | |
using | GravityFunction = std::function< void(SparseArray< GravityComponent > &)> |
using | PressableFunction = std::function< void(SparseArray< TransformComponent > &transforms, SparseArray< TextureComponent > &textures, SparseArray< PressableComponent > &pressables)> |
using | Rectf = Rect< float > |
using | Recti = Rect< int > |
Enumerations | |
enum | PressableState { defaultState , hoveredState , pressedState } |
enum class | Event : EventType { WindowIsOpen , WindowCloseEvent , QuitEvent , PollEvent , GetWorldMousePos , WindowSetView , SetFpsLimitEvent , GetTransform , GetCollision , GetTexture , GetControllable , GetNewEntity , GetEntity , GetDestroy , SendInput , GetEndGame , GetStateTexture , GetScore , DeleteEntity , EnemiesSpawnedEvent , EnemiesMoveEvent , EnemiesDieEvent , PlayerMoveEvent , PlayerSpawnedEvent , PlayersDieEvent , PlayerShootEvent } |
enum of all event types More... | |
Functions | |
template<typename T > | |
int | replaceOnTop (Vector2< T > &pos1, const Rect< T > &rect1, const Vector2< T > &pos2, const Rect< T > &rect2) |
void | from_json (const json &j, Input::Keyboard::Key &key) |
Function to convert a json object to a key. More... | |
template<typename T > | |
void | from_json (const json &j, Rect< T > &rect) |
Function to convert a json object to a rect. More... | |
template<typename T > | |
void | from_json (const json &j, Vector2< T > &vec) |
void | from_json (const json &j, Texture &texture) |
Function to convert a json object to a Texture. More... | |
void | from_json (const json &j, TransformComponent &tc) |
Function to convert a json object to a TransfromComponent. More... | |
void | from_json (const json &j, HealthComponent &hc) |
Function to convert a json object to a HealthComponent. More... | |
void | from_json (const json &j, DamageComponent &dc) |
Function to convert a json object to a DamageComponent. More... | |
void | from_json (const json &j, ControllableComponent &cc) |
Function to convert a json object to a ControllableComponent. More... | |
void | from_json (const json &j, TextureComponent &tc) |
Function to convert a json object to a TextureComponent. More... | |
void | from_json (const json &j, CollisionComponent &cc) |
Function to convert a json object to a CollisionComponent. More... | |
void | from_json (const json &j, GravityComponent &gc) |
Function to convert a json object to a GravityComponent. More... | |
void | from_json (const json &j, CameraComponent &cc) |
Function to convert a json object to a CameraComponent. More... | |
void | from_json (const json &j, TextComponent &tx) |
using GameEngine::EventType = typedef std::size_t |
value to describe the event type
using GameEngine::GravityFunction = typedef std::function<void(SparseArray<GravityComponent> &)> |
using GameEngine::PressableFunction = typedef std::function<void(SparseArray<TransformComponent> &transforms, SparseArray<TextureComponent> &textures, SparseArray<PressableComponent> &pressables)> |
using GameEngine::Rectf = typedef Rect<float> |
using GameEngine::Recti = typedef Rect<int> |
|
strong |
enum of all event types
void GameEngine::from_json | ( | const json & | j, |
CameraComponent & | cc | ||
) |
Function to convert a json object to a CameraComponent.
j | reference to the json object |
cc | reference to the camera component |
void GameEngine::from_json | ( | const json & | j, |
CollisionComponent & | cc | ||
) |
Function to convert a json object to a CollisionComponent.
j | reference to the json object |
cc | reference to the collision component |
void GameEngine::from_json | ( | const json & | j, |
ControllableComponent & | cc | ||
) |
Function to convert a json object to a ControllableComponent.
j | reference to the json object |
cc | reference to the controllable component |
void GameEngine::from_json | ( | const json & | j, |
DamageComponent & | dc | ||
) |
Function to convert a json object to a DamageComponent.
j | reference to the json object |
tc | reference to the damage component |
void GameEngine::from_json | ( | const json & | j, |
GravityComponent & | gc | ||
) |
Function to convert a json object to a GravityComponent.
j | reference to the json object |
gc | reference to the gravity component |
void GameEngine::from_json | ( | const json & | j, |
HealthComponent & | hc | ||
) |
Function to convert a json object to a HealthComponent.
j | reference to the json object |
tc | reference to the health component |
void GameEngine::from_json | ( | const json & | j, |
Input::Keyboard::Key & | key | ||
) |
Function to convert a json object to a key.
j | reference to the json object |
key | reference to the key |
Function to convert a json object to a rect.
T | type of the rect |
j | reference to the json object |
rect | reference to the rect |
void GameEngine::from_json | ( | const json & | j, |
TextComponent & | tx | ||
) |
Function to convert a json object to a Texture.
j | reference to the json object |
texture | reference to the texture |
void GameEngine::from_json | ( | const json & | j, |
TextureComponent & | tc | ||
) |
Function to convert a json object to a TextureComponent.
j | reference to the json object |
tc | reference to the texture component |
void GameEngine::from_json | ( | const json & | j, |
TransformComponent & | tc | ||
) |
Function to convert a json object to a TransfromComponent.
j | reference to the json object |
tc | reference to the transform component |