|
R-Type
2
Doom but in better
|
Data Structures | |
| class | Clock |
| A class for managing time tracking within the ECS system. More... | |
| class | Collision |
| Represents a rectangular component that can detect collisions and mouse interactions, such as hovering and clicking. More... | |
| class | Colour |
A class for representing and manipulating colors using RGBA components. Inherits from EntityNode to associate colors with entities in the ECS. More... | |
| class | EventManager |
| Manages input events such as mouse movements, key presses, and window interactions. More... | |
| class | Font |
| Manages font entities in the GUI ECS. More... | |
| class | KeyMapper |
| class | MouseInfo |
| class | Window |
| Manages an SFML-based graphical window and handles rendering of ECS components. More... | |
Functions | |
| std::ostream & | operator<< (std::ostream &os, const Clock &item) |
| Outputs the clock's info to a stream. | |
| std::ostream & | operator<< (std::ostream &os, const Collision &item) |
| Outputs the collision component's info to a stream. | |
| const bool | operator== (Collision left, Collision right) |
| Compares two collision components for equality. | |
| const bool | operator!= (Collision left, Collision right) |
| Compares two collision components for inequality. | |
| const Collision | operator+ (Collision left, Collision right) |
| Adds two collision components component-wise. | |
| const Collision | operator- (Collision left, Collision right) |
| Subtracts two collision components component-wise. | |
| const Collision | operator* (Collision left, Collision right) |
| Multiplies two collision components component-wise. | |
| const Collision & | operator+= (Collision &left, Collision right) |
| Adds another collision component to the current collision component component-wise. | |
| const Collision & | operator-= (Collision &left, Collision right) |
| Subtracts another collision component from the current collision component component-wise. | |
| const Collision & | operator*= (Collision &left, Collision right) |
| Multiplies another collision component with the current collision component component-wise. | |
| std::ostream & | operator<< (std::ostream &os, const Colour &colour) |
| Outputs the color's info to a stream. | |
| const bool | operator== (Colour left, Colour right) |
| Compares two colors for equality. | |
| const bool | operator!= (Colour left, Colour right) |
| Compares two colors for inequality. | |
| const Colour | operator+ (Colour left, Colour right) |
| Adds two colors component-wise. | |
| const Colour | operator- (Colour left, Colour right) |
| Subtracts two colors component-wise. | |
| const Colour | operator* (Colour left, Colour right) |
| Multiplies two colors component-wise. | |
| const Colour & | operator+= (Colour &left, Colour right) |
| Adds another color to the current color component-wise. | |
| const Colour & | operator-= (Colour &left, Colour right) |
| Subtracts another color from the current color component-wise. | |
| const Colour & | operator*= (Colour &left, Colour right) |
| Multiplies another color with the current color component-wise. | |
| std::ostream & | operator<< (std::ostream &os, const EventManager &item) |
| Outputs the event's info to a stream. | |
| std::ostream & | operator<< (std::ostream &os, const Font &item) |
| Outputs the font's info to a stream. | |
| std::ostream & | operator<< (std::ostream &os, const KeyMapper &item) |
| Outputs the keyMapper's info to a stream. | |
| std::ostream & | operator<< (std::ostream &os, const Key &item) |
| Outputs the keyMapper's info to a stream. | |
| std::ostream & | operator<< (std::ostream &os, const MouseInfo &item) |
| Outputs the Mouse's info to a stream. | |
| std::ostream & | operator<< (std::ostream &os, const Window &item) |
| Outputs the window's info to a stream. | |
Variables | |
| const std::unordered_map< Key, std::string > | keyCodeEquivalence |
| An unordered map to track the equivalence between the Key and the string representation. | |
|
strong |
Enum representing different types of shapes managed by the ShapeComponent.
| Enumerator | |
|---|---|
| NONE | No shape initialized. |
| RECTANGLE | Rectangle shape. |
| CIRCLE | Circle shape. |
| CONVEX | Convex shape. |
Definition at line 26 of file ActiveShape.hpp.
|
strong |
|
strong |
An enum class to allow the user to know which direction the mouse has scrolled.
| Enumerator | |
|---|---|
| Vertical | The vertical mouse wheel. |
| Horizontal | The horizontal mouse wheel. |
Definition at line 35 of file MouseInfo.hpp.
Compares two collision components for inequality.
| left | The first collision component. |
| right | The second collision component. |
true if the collision components are not equal; otherwise, false. Definition at line 357 of file Collision.cpp.
Compares two colors for inequality.
| left | The first color. |
| right | The second color. |
true if the colors are not equal; otherwise, false. Definition at line 266 of file Colour.cpp.
|
nodiscard |
Multiplies two collision components component-wise.
| left | The first collision component. |
| right | The second collision component. |
Definition at line 384 of file Collision.cpp.
|
nodiscard |
Multiplies two colors component-wise.
| left | The first color. |
| right | The second color. |
Definition at line 291 of file Colour.cpp.
| const GUI::ECS::Systems::Collision & GUI::ECS::Systems::operator*= | ( | Collision & | left, |
| Collision | right ) |
Multiplies another collision component with the current collision component component-wise.
| left | The collision component to modify. |
| right | The collision component to multiply. |
Definition at line 413 of file Collision.cpp.
| const GUI::ECS::Systems::Colour & GUI::ECS::Systems::operator*= | ( | Colour & | left, |
| Colour | right ) |
Multiplies another color with the current color component-wise.
| left | The color to modify. |
| right | The color to multiply. |
Definition at line 319 of file Colour.cpp.
|
nodiscard |
Adds two collision components component-wise.
| left | The first collision component. |
| right | The second collision component. |
Definition at line 362 of file Collision.cpp.
|
nodiscard |
Adds two colors component-wise.
| left | The first color. |
| right | The second color. |
Definition at line 271 of file Colour.cpp.
| const GUI::ECS::Systems::Collision & GUI::ECS::Systems::operator+= | ( | Collision & | left, |
| Collision | right ) |
Adds another collision component to the current collision component component-wise.
| left | The collision component to modify. |
| right | The collision component to add. |
Definition at line 395 of file Collision.cpp.
| const GUI::ECS::Systems::Colour & GUI::ECS::Systems::operator+= | ( | Colour & | left, |
| Colour | right ) |
Adds another color to the current color component-wise.
| left | The color to modify. |
| right | The color to add. |
Definition at line 301 of file Colour.cpp.
|
nodiscard |
Subtracts two collision components component-wise.
| left | The first collision component. |
| right | The second collision component. |
Definition at line 373 of file Collision.cpp.
|
nodiscard |
Subtracts two colors component-wise.
| left | The first color. |
| right | The second color. |
Definition at line 281 of file Colour.cpp.
| const GUI::ECS::Systems::Collision & GUI::ECS::Systems::operator-= | ( | Collision & | left, |
| Collision | right ) |
Subtracts another collision component from the current collision component component-wise.
| left | The collision component to modify. |
| right | The collision component to subtract. |
Definition at line 404 of file Collision.cpp.
| const GUI::ECS::Systems::Colour & GUI::ECS::Systems::operator-= | ( | Colour & | left, |
| Colour | right ) |
Subtracts another color from the current color component-wise.
| left | The color to modify. |
| right | The color to subtract. |
Definition at line 310 of file Colour.cpp.
| std::ostream & GUI::ECS::Systems::operator<< | ( | std::ostream & | os, |
| const Clock & | item ) |
| std::ostream & GUI::ECS::Systems::operator<< | ( | std::ostream & | os, |
| const Collision & | item ) |
Outputs the collision component's info to a stream.
| os | The output stream. |
| item | The collision component to output. |
Definition at line 306 of file Collision.cpp.
| std::ostream & GUI::ECS::Systems::operator<< | ( | std::ostream & | os, |
| const Colour & | colour ) |
Outputs the color's info to a stream.
| os | The output stream. |
| colour | The color to output. |
Definition at line 255 of file Colour.cpp.
| std::ostream & GUI::ECS::Systems::operator<< | ( | std::ostream & | os, |
| const EventManager & | item ) |
Outputs the event's info to a stream.
| os | The output stream. |
| item | The event to output. |
Definition at line 181 of file EventManager.cpp.
| std::ostream & GUI::ECS::Systems::operator<< | ( | std::ostream & | os, |
| const Font & | item ) |
| std::ostream & GUI::ECS::Systems::operator<< | ( | std::ostream & | os, |
| const Key & | item ) |
| std::ostream & GUI::ECS::Systems::operator<< | ( | std::ostream & | os, |
| const KeyMapper & | item ) |
| std::ostream & GUI::ECS::Systems::operator<< | ( | std::ostream & | os, |
| const MouseInfo & | item ) |
Outputs the Mouse's info to a stream.
| os | The output stream. |
| item | The Mouse to output. |
Definition at line 424 of file MouseInfo.cpp.
| std::ostream & GUI::ECS::Systems::operator<< | ( | std::ostream & | os, |
| const Window & | item ) |
Outputs the window's info to a stream.
| os | The output stream. |
| item | The window to output. |
Definition at line 316 of file Window.cpp.
Compares two collision components for equality.
| left | The first collision component. |
| right | The second collision component. |
true if the collision components are equal; otherwise, false. Definition at line 351 of file Collision.cpp.
Compares two colors for equality.
| left | The first color. |
| right | The second color. |
true if the colors are equal; otherwise, false. Definition at line 261 of file Colour.cpp.
|
extern |