A factory class for configuring and creating Simulation objects.
More...
#include <SimulationFabric.hpp>
A factory class for configuring and creating Simulation objects.
◆ SimulationFabric()
| SimulationFabric::SimulationFabric |
( |
| ) |
|
|
default |
◆ build()
◆ getCreepersParams_()
| decltype(CreepersParams_) SimulationFabric::getCreepersParams_ |
( |
| ) |
|
|
inline |
◆ getFieldParams()
| decltype(fieldParams_) SimulationFabric::getFieldParams |
( |
| ) |
|
|
inline |
Retrieves the field parameters.
- Returns
- Shared pointer to the field parameters.
- Exceptions
-
| std::invalid_argument | if the field parameters are not set. |
◆ getStevesParams_()
| decltype(StevesParams_) SimulationFabric::getStevesParams_ |
( |
| ) |
|
|
inline |
◆ setBedrock()
◆ setCreeperParams()
| SimulationFabric & SimulationFabric::setCreeperParams |
( |
double |
moveRadius = 10, |
|
|
double |
explodeRadius = 10, |
|
|
uint32_t |
count = 0 |
|
) |
| |
|
inline |
Sets the parameters for creepers in the simulation.
- Parameters
-
| moveRadius | Movement radius for creepers. |
| explodeRadius | Explosion radius for creepers. |
| count | Number of creepers. |
- Returns
- Reference to the SimulationFabric object for chaining.
- Exceptions
-
| std::invalid_argument | if the field parameters are not set. |
◆ setFieldParams()
Sets the field parameters for the simulation.
- Parameters
-
| bounds | The rectangular bounds of the field. |
| distanceFunc | Function to calculate distance between two points. |
- Returns
- Reference to the SimulationFabric object for chaining.
◆ setSteveParams()
| SimulationFabric & SimulationFabric::setSteveParams |
( |
double |
moveRadius = 10, |
|
|
uint32_t |
count = 0 |
|
) |
| |
|
inline |
Sets the parameters for Steves in the simulation.
- Parameters
-
| moveRadius | Movement radius for Steves. |
| count | Number of Steves. |
- Returns
- Reference to the SimulationFabric object for chaining.
- Exceptions
-
| std::invalid_argument | if the field parameters are not set. |
The documentation for this class was generated from the following file: