GameObjectPrototype Class
Internal builder class for fluent GameObject configuration. More...
Declaration
Public Member Typedefs Index
Public Constructors Index
| GameObjectPrototype (helios::engine::runtime::world::GameWorld &gameWorld) | |
|
Constructs a prototype with a new empty GameObject. More... | |
Public Member Functions Index
| GameObjectPrototype & | prototype () |
|
Returns a reference to this prototype. More... | |
| helios::engine::ecs::GameObject | make (const bool active=false) |
|
Finalizes the prototype and returns the configured GameObject. More... | |
| GameObjectPrototype & | withMotion (const MotionBuilderCallback &mcb) |
|
Configures motion-related components. More... | |
| GameObjectPrototype & | withRendering (const RenderingBuilderCallback &rbc) |
|
Configures rendering-related components. More... | |
| GameObjectPrototype & | withCollision (const CollisionBuilderCallback &cbc) |
|
Configures collision-related components. More... | |
| GameObjectPrototype & | withTransform (const TransformBuilderCallback &tbc) |
|
Configures spatial transform components. More... | |
| GameObjectPrototype & | withUiTransform (const UiTransformBuilderCallback &utbc) |
|
Configures UI transform components for viewport-relative positioning. More... | |
| GameObjectPrototype & | withEffects (const EffectsBuilderCallback &ebc) |
|
Configures visual effects components. More... | |
| GameObjectPrototype & | withSpawn (const SpawnBuilderCallback &sbc) |
|
Configures spawn-related components. More... | |
| GameObjectPrototype & | withAi (const AiBuilderCallback &aibc) |
|
Configures AI behavior components. More... | |
| GameObjectPrototype & | withCombat (const CombatBuilderCallback &sbc) |
|
Configures weapon and shooting components. More... | |
| GameObjectPrototype & | withLifecycle (const LifecycleBuilderCallback &sbc) |
|
Configures lifecycle components. More... | |
| GameObjectPrototype & | withHealth (const HealthBuilderCallback &hbc) |
|
Configures health-related components. More... | |
| GameObjectPrototype & | withScoring (const ScoringBuilderCallback &hbc) |
|
Configures scoring-related components. More... | |
| GameObjectPrototype & | withObserver (const ObserverBuilderCallback &obc) |
|
Configures observer components for data binding. More... | |
Private Member Attributes Index
Description
Internal builder class for fluent GameObject configuration.
Holds domain-specific builders and provides callback-based methods for configuring different aspects of a GameObject.
Definition at line 49 of file GameObjectFactory.ixx.
Public Member Typedefs
AiBuilderCallback
|
Callback type for AI configuration.
Definition at line 152 of file GameObjectFactory.ixx.
CollisionBuilderCallback
|
Callback type for collision configuration.
Definition at line 143 of file GameObjectFactory.ixx.
CombatBuilderCallback
|
Callback type for combat configuration.
Definition at line 155 of file GameObjectFactory.ixx.
EffectsBuilderCallback
|
Callback type for effects configuration.
Definition at line 146 of file GameObjectFactory.ixx.
HealthBuilderCallback
|
Callback type for health configuration.
Definition at line 161 of file GameObjectFactory.ixx.
LifecycleBuilderCallback
|
Callback type for lifecycle configuration.
Definition at line 158 of file GameObjectFactory.ixx.
MotionBuilderCallback
|
Callback type for motion configuration.
Definition at line 128 of file GameObjectFactory.ixx.
ObserverBuilderCallback
|
Callback type for observer configuration.
Definition at line 167 of file GameObjectFactory.ixx.
RenderingBuilderCallback
|
Callback type for rendering configuration.
Definition at line 131 of file GameObjectFactory.ixx.
SceneBuilderCallback
|
Callback type for scene configuration.
Definition at line 134 of file GameObjectFactory.ixx.
ScoringBuilderCallback
|
Callback type for scoring configuration.
Definition at line 164 of file GameObjectFactory.ixx.
SpawnBuilderCallback
|
Callback type for spawn configuration.
Definition at line 149 of file GameObjectFactory.ixx.
TransformBuilderCallback
|
Callback type for transform configuration.
Definition at line 137 of file GameObjectFactory.ixx.
UiTransformBuilderCallback
|
Callback type for UI transform configuration.
Definition at line 140 of file GameObjectFactory.ixx.
Public Constructors
GameObjectPrototype()
| inline |
Constructs a prototype with a new empty GameObject.
Definition at line 173 of file GameObjectFactory.ixx.
Public Member Functions
make()
| inline |
Finalizes the prototype and returns the configured GameObject.
- Parameters
-
active Whether the GameObject should be active upon creation.
- Returns
Ownership of the configured GameObject.
Definition at line 208 of file GameObjectFactory.ixx.
prototype()
| inline |
Returns a reference to this prototype.
- Returns
Reference to this prototype.
Definition at line 197 of file GameObjectFactory.ixx.
withAi()
| inline |
Configures AI behavior components.
- Parameters
-
aibc Callback receiving an AiBuilder reference.
- Returns
Reference to this prototype for chaining.
Definition at line 306 of file GameObjectFactory.ixx.
withCollision()
| inline |
Configures collision-related components.
- Parameters
-
cbc Callback receiving a CollisionBuilder reference.
- Returns
Reference to this prototype for chaining.
Definition at line 246 of file GameObjectFactory.ixx.
withCombat()
| inline |
Configures weapon and shooting components.
- Parameters
-
sbc Callback receiving a CombatBuilder reference.
- Returns
Reference to this prototype for chaining.
Definition at line 318 of file GameObjectFactory.ixx.
withEffects()
| inline |
Configures visual effects components.
- Parameters
-
ebc Callback receiving an EffectsBuilder reference.
- Returns
Reference to this prototype for chaining.
Definition at line 282 of file GameObjectFactory.ixx.
withHealth()
| inline |
Configures health-related components.
- Parameters
-
hbc Callback receiving a HealthBuilder reference.
- Returns
Reference to this prototype for chaining.
Definition at line 342 of file GameObjectFactory.ixx.
withLifecycle()
| inline |
Configures lifecycle components.
- Parameters
-
sbc Callback receiving a LifecycleBuilder reference.
- Returns
Reference to this prototype for chaining.
Definition at line 330 of file GameObjectFactory.ixx.
withMotion()
| inline |
Configures motion-related components.
- Parameters
-
mcb Callback receiving a MotionBuilder reference.
- Returns
Reference to this prototype for chaining.
Definition at line 222 of file GameObjectFactory.ixx.
withObserver()
| inline |
Configures observer components for data binding.
- Parameters
-
obc Callback receiving an ObserverBuilder reference.
- Returns
Reference to this prototype for chaining.
Definition at line 366 of file GameObjectFactory.ixx.
withRendering()
| inline |
Configures rendering-related components.
- Parameters
-
rbc Callback receiving a RenderingBuilder reference.
- Returns
Reference to this prototype for chaining.
Definition at line 234 of file GameObjectFactory.ixx.
withScoring()
| inline |
Configures scoring-related components.
- Parameters
-
hbc Callback receiving a ScoringBuilder reference.
- Returns
Reference to this prototype for chaining.
Definition at line 354 of file GameObjectFactory.ixx.
withSpawn()
| inline |
Configures spawn-related components.
- Parameters
-
sbc Callback receiving a SpawnBuilder reference.
- Returns
Reference to this prototype for chaining.
Definition at line 294 of file GameObjectFactory.ixx.
withTransform()
| inline |
Configures spatial transform components.
- Parameters
-
tbc Callback receiving a TransformBuilder reference.
- Returns
Reference to this prototype for chaining.
Definition at line 258 of file GameObjectFactory.ixx.
withUiTransform()
| inline |
Configures UI transform components for viewport-relative positioning.
- Parameters
-
utbc Callback receiving a UiTransformBuilder reference.
- Returns
Reference to this prototype for chaining.
Definition at line 270 of file GameObjectFactory.ixx.
Private Member Attributes
aiBuilder_
|
Builder for AI behavior components.
Definition at line 99 of file GameObjectFactory.ixx.
collisionBuilder_
|
Builder for collision-related components.
Definition at line 74 of file GameObjectFactory.ixx.
CombatBuilder_
|
Builder for combat-related components.
Definition at line 104 of file GameObjectFactory.ixx.
effectsBuilder_
|
Builder for visual effects components.
Definition at line 89 of file GameObjectFactory.ixx.
gameObject_
|
The GameObject being configured.
Definition at line 54 of file GameObjectFactory.ixx.
healthBuilder_
|
Builder for health-related components.
Definition at line 114 of file GameObjectFactory.ixx.
lifecycleBuilder_
|
Builder for lifecycle components.
Definition at line 109 of file GameObjectFactory.ixx.
motionBuilder_
|
Builder for motion-related components.
Definition at line 59 of file GameObjectFactory.ixx.
observerBuilder_
|
Builder for observer components.
Definition at line 124 of file GameObjectFactory.ixx.
renderingBuilder_
|
Builder for rendering-related components.
Definition at line 64 of file GameObjectFactory.ixx.
sceneBuilder_
|
Builder for scene-related components.
Definition at line 69 of file GameObjectFactory.ixx.
scoringBuilder_
|
Builder for scoring-related components.
Definition at line 119 of file GameObjectFactory.ixx.
spawnBuilder_
|
Builder for spawn-related components.
Definition at line 94 of file GameObjectFactory.ixx.
transformBuilder_
|
Builder for spatial transform components.
Definition at line 79 of file GameObjectFactory.ixx.
uiTransformBuilder_
|
Builder for UI transform components.
Definition at line 84 of file GameObjectFactory.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.