30 State(
const std::shared_ptr<geometrize::Shape>& shape, std::uint8_t alpha);
43 std::shared_ptr<geometrize::Shape>
m_shape;
The State class relates a shape and related properties to a measure of how close it brings the workin...
Definition: state.h:21
std::uint8_t m_alpha
The alpha of the shape.
Definition: state.h:42
State()
Definition: state.cpp:11
geometrize::State mutate()
mutate Modifies the current state in a random fashion.
Definition: state.cpp:33
double m_score
The score of the state, a measure of the improvement applying the state to the current bitmap will ha...
Definition: state.h:41
State & operator=(const State &other)
Definition: state.cpp:19
std::shared_ptr< geometrize::Shape > m_shape
The geometric primitive owned by the state.
Definition: state.h:43