Configuration parameters for Steve units in the simulation. More...
#include <Steve.hpp>
Public Types | |
| enum class | State : std::uint8_t { Born , Walk , Dead } |
| Possible states of a Steve. More... | |
Public Member Functions | |
| StevesParams (double moveRadius, const std::shared_ptr< FieldParams > &fieldParams, uint32_t unitsCount) | |
| Constructs the StevesParams object. | |
Public Member Functions inherited from UnitsParams | |
| UnitsParams (double moveRadius, const std::shared_ptr< FieldParams > &fieldParams, uint32_t unitsCount) | |
| Constructs the UnitsParams object. | |
| auto | getMoveRadius () const |
| Retrieves the movement radius of the units. | |
| auto | getFieldParams () const |
| Retrieves the shared field parameters. | |
| auto | getUnitsCount () const |
| Retrieves the total number of units. | |
| virtual Point | generatePos (std::optional< Point > initialPoint) |
| Generates a position for a unit, optionally starting from an initial point. | |
| virtual | ~UnitsParams ()=default |
| Virtual destructor for UnitsParams. | |
| UnitsParams (const UnitsParams &)=delete | |
| void | operator= (const UnitsParams &)=delete |
| UnitsParams (UnitsParams &&)=delete | |
| void | operator= (UnitsParams &&)=delete |
Configuration parameters for Steve units in the simulation.
|
strong |
Possible states of a Steve.
| Enumerator | |
|---|---|
| Born | |
| Walk | |
| Dead | |
| StevesParams::StevesParams | ( | double | moveRadius, |
| const std::shared_ptr< FieldParams > & | fieldParams, | ||
| uint32_t | unitsCount | ||
| ) |
Constructs the StevesParams object.