![]() |
Recast
1
Game with custom magic
|
#include <BoundTemperatureWorldInjector.hpp>

Public Member Functions | |
| BoundTemperatureWorldInjector () | |
| bool | hasWorldBounds () const noexcept |
| Parallelepiped | worldBounds () const |
| void | setWorldBounds (Parallelepiped worldBounds) |
| bool | hasTemperatureExchangeCoefficient () const noexcept |
| double | temperatureExchangeCoefficient () const |
| void | setTemperatureExchangeCoefficient (double temperatureExchangeCoefficient) |
| bool | hasMinUpdateDelta () const noexcept |
| std::chrono::milliseconds | minUpdateDelta () const |
| void | setMinUpdateDelta (std::chrono::milliseconds minUpdateDelta) |
| std::shared_ptr < ITemperatureWorldBoundable < ITemperatureWorld > > | world () |
| std::shared_ptr< IUpdater > | updater () |
| std::shared_ptr < ITimerBlockable< ITimer > > | timer () |
Protected Member Functions | |
| void | _makeWorld () |
| void | _makeUpdater () |
| void | _makeTimer () |
Protected Attributes | |
| std::unique_ptr< Parallelepiped > | _worldBounds |
| std::unique_ptr< double > | _temperatureExchangeCoefficient |
| std::unique_ptr < std::chrono::milliseconds > | _minUpdateDelta |
| std::shared_ptr < ITemperatureWorldBoundable < ITemperatureWorld > > | _world |
| std::shared_ptr< IUpdater > | _updater |
| std::shared_ptr < ITimerBlockable< ITimer > > | _timer |
Injector. This class builds bound temperature world and its updater. You must set world bounds via setWorldBounds method. Temperature exchange coefficient and minimum update delta are set to defaults.
| BoundTemperatureWorldInjector::BoundTemperatureWorldInjector | ( | ) |
|
protected |
|
protected |
|
protected |
|
noexcept |
This method is exception-safe.
|
noexcept |
This method is exception-safe.
|
noexcept |
This method is exception-safe.
| milliseconds BoundTemperatureWorldInjector::minUpdateDelta | ( | ) | const |
Minimum time between world updates is the minimum update delta. This method can throw an exception if minimum update delta is not set.
| void BoundTemperatureWorldInjector::setMinUpdateDelta | ( | std::chrono::milliseconds | minUpdateDelta | ) |
Sets minimum update delta. Minimum time between world updates is minimum update delta.
| minUpdateDelta | Minimum update delta. |
| void BoundTemperatureWorldInjector::setTemperatureExchangeCoefficient | ( | double | temperatureExchangeCoefficient | ) |
Sets temperature exchange coefficient. The more temperature exchange coefficient is, the faster temperature exchange will be.
| temperatureExchangeCoefficient | Temperature exchange coefficient. |
| void BoundTemperatureWorldInjector::setWorldBounds | ( | Parallelepiped | worldBounds | ) |
Sets world bounds.
| worldBounds | World bounds. |
| double BoundTemperatureWorldInjector::temperatureExchangeCoefficient | ( | ) | const |
The more temperature exchange coefficient is, the faster temperature exchange will be. This method can throw an exception if temperature exchange coefficient is not set.
| shared_ptr< ITimerBlockable< ITimer > > BoundTemperatureWorldInjector::timer | ( | ) |
Timer will be built only once for an injector instance.
| shared_ptr< IUpdater > BoundTemperatureWorldInjector::updater | ( | ) |
Temperature world updater will be built only once for an injector instance. You can get the world via world getter.
| shared_ptr< ITemperatureWorldBoundable< ITemperatureWorld > > BoundTemperatureWorldInjector::world | ( | ) |
Temperature world will be built only once for an injector instance. updater getter uses the same world instance.
| Parallelepiped BoundTemperatureWorldInjector::worldBounds | ( | ) | const |
This method can throw an exception if world bounds are not set.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.6