ScorePoolComponent Class
Component that associates an entity with a score pool. More...
Declaration
Public Constructors Index
| ScorePoolComponent ()=default | |
| ScorePoolComponent (const ScorePoolComponent &other) | |
|
Copy constructor. More... | |
| ScorePoolComponent (ScorePoolComponent &&) noexcept=default | |
Public Operators Index
| ScorePoolComponent & | operator= (const ScorePoolComponent &)=default |
| ScorePoolComponent & | operator= (ScorePoolComponent &&) noexcept=default |
Public Member Functions Index
| bool | isEnabled () const noexcept |
|
Checks whether this component is enabled. More... | |
| void | enable () noexcept |
|
Enables this component. More... | |
| void | disable () noexcept |
|
Disables this component. More... | |
| void | setScorePoolId (const helios::engine::mechanics::scoring::types::ScorePoolId scorePoolId) noexcept |
|
Sets the associated score pool. More... | |
| helios::engine::mechanics::scoring::types::ScorePoolId | scorePoolId () const noexcept |
|
Returns the associated score pool ID. More... | |
Private Member Attributes Index
| helios::engine::mechanics::scoring::types::ScorePoolId | scorePoolId_ {helios::core::types::no_init} |
|
ID of the associated score pool. More... | |
| bool | isEnabled_ = true |
|
Whether this component is enabled. More... | |
Description
Component that associates an entity with a score pool.
Attached to entities (e.g., player) to specify which score pool receives points when that entity performs scoring actions.
Definition at line 24 of file ScorePoolComponent.ixx.
Public Constructors
ScorePoolComponent()
| default |
Definition at line 64 of file ScorePoolComponent.ixx.
Referenced by operator=, operator=, ScorePoolComponent and ScorePoolComponent.
ScorePoolComponent()
| inline |
Copy constructor.
- Parameters
-
other The component to copy from.
Definition at line 71 of file ScorePoolComponent.ixx.
Reference ScorePoolComponent.
ScorePoolComponent()
| noexcept default |
Definition at line 74 of file ScorePoolComponent.ixx.
Reference ScorePoolComponent.
Public Operators
operator=()
| default |
Definition at line 73 of file ScorePoolComponent.ixx.
Reference ScorePoolComponent.
operator=()
| noexcept default |
Definition at line 75 of file ScorePoolComponent.ixx.
Reference ScorePoolComponent.
Public Member Functions
disable()
| inline noexcept |
Disables this component.
Definition at line 60 of file ScorePoolComponent.ixx.
enable()
| inline noexcept |
Enables this component.
Definition at line 53 of file ScorePoolComponent.ixx.
isEnabled()
| inline nodiscard noexcept |
Checks whether this component is enabled.
- Returns
True if enabled, false otherwise.
Definition at line 46 of file ScorePoolComponent.ixx.
scorePoolId()
| inline nodiscard noexcept |
Returns the associated score pool ID.
- Returns
The ScorePoolId.
Definition at line 91 of file ScorePoolComponent.ixx.
Referenced by setScorePoolId.
setScorePoolId()
| inline noexcept |
Sets the associated score pool.
- Parameters
-
scorePoolId The ID of the score pool.
Definition at line 82 of file ScorePoolComponent.ixx.
References scorePoolId and setScorePoolId.
Referenced by setScorePoolId.
Private Member Attributes
isEnabled_
|
Whether this component is enabled.
Definition at line 36 of file ScorePoolComponent.ixx.
scorePoolId_
|
ID of the associated score pool.
Definition at line 31 of file ScorePoolComponent.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.