ObserverConfig Class
Fluent configuration for observer component setup. More...
Declaration
Public Constructors Index
| ObserverConfig (helios::engine::ecs::GameObject gameObject) | |
|
Constructs an ObserverConfig. More... | |
Public Member Functions Index
| ObserverConfig & | scorePool (const helios::engine::mechanics::scoring::types::ScorePoolId scorePoolId) |
|
Adds a ScoreObserverComponent bound to the specified pool. More... | |
| ObserverConfig & | runningScore (const helios::engine::mechanics::scoring::types::ScorePoolId scorePoolId) |
|
Adds a ScoreObserverComponent bound to the specified pool. More... | |
| ObserverConfig & | lives (const helios::engine::ecs::GameObject gameObject) |
|
Adds a LivesBindingComponent observing the given entity's lives. More... | |
| ObserverConfig & | maxScore (const helios::engine::mechanics::scoring::types::ScorePoolId scorePoolId) |
|
Adds a MaxScoreObserverComponent bound to the specified pool. More... | |
| ObserverConfig & | time (const helios::engine::mechanics::timing::types::GameTimerId gameTimerId) |
|
Adds a GameTimerBindingComponent bound to the specified timer. More... | |
Private Member Attributes Index
| helios::engine::ecs::GameObject | gameObject_ |
|
Non-owning pointer to the target GameObject. More... | |
Description
Fluent configuration for observer component setup.
Provides methods for adding observer components that bind to data sources like score pools and game timers.
- See Also
ScoreObserverComponent
- See Also
MaxScoreObserverComponent
- See Also
GameTimerBindingComponent
Definition at line 34 of file ObserverConfig.ixx.
Public Constructors
ObserverConfig()
| inline explicit |
Constructs an ObserverConfig.
- Parameters
-
<a href="/docs/helios/namespaces/helios/engine/builder/gameobject">gameObject</a> Target GameObject to configure.
Definition at line 48 of file ObserverConfig.ixx.
Referenced by lives, maxScore, runningScore, scorePool and time.
Public Member Functions
lives()
| inline |
Adds a LivesBindingComponent observing the given entity's lives.
- Parameters
-
<a href="/docs/helios/namespaces/helios/engine/builder/gameobject">gameObject</a> The entity whose LivesComponent is observed.
- Returns
Reference to this config for chaining.
Definition at line 90 of file ObserverConfig.ixx.
Reference ObserverConfig.
maxScore()
| inline |
Adds a MaxScoreObserverComponent bound to the specified pool.
- Parameters
-
scorePoolId The ID of the score pool to observe.
- Returns
Reference to this config for chaining.
Definition at line 111 of file ObserverConfig.ixx.
Reference ObserverConfig.
runningScore()
| inline |
Adds a ScoreObserverComponent bound to the specified pool.
- Parameters
-
scorePoolId The ID of the score pool to observe.
- Returns
Reference to this config for chaining.
Definition at line 72 of file ObserverConfig.ixx.
Reference ObserverConfig.
Referenced by scorePool.
scorePool()
| inline |
Adds a ScoreObserverComponent bound to the specified pool.
- Parameters
-
scorePoolId The ID of the score pool to observe.
- Returns
Reference to this config for chaining.
Definition at line 61 of file ObserverConfig.ixx.
References ObserverConfig and runningScore.
time()
| inline |
Adds a GameTimerBindingComponent bound to the specified timer.
- Parameters
-
gameTimerId The ID of the game timer to observe.
- Returns
Reference to this config for chaining.
Definition at line 129 of file ObserverConfig.ixx.
Reference ObserverConfig.
Private Member Attributes
gameObject_
|
Non-owning pointer to the target GameObject.
Definition at line 39 of file ObserverConfig.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.