8#ifndef W_LENGTH_COMPONENT_HPP
9#define W_LENGTH_COMPONENT_HPP
13#pragma GCC diagnostic push
14#pragma GCC diagnostic ignored "-Wfloat-equal"
15#pragma GCC diagnostic ignored "-Wswitch-default"
16#include <SFML/Graphics.hpp>
17#pragma GCC diagnostic pop
75 void validatePositive(
float value )
const;
Component()
Protected constructor to restrict instantiation to derived classes.
Definition wComponent.cpp:17
void debugPrint() const
Outputs the current length value to the console for debugging.
Definition wLengthComponent.cpp:50
void setLength(float newLength)
Sets a new length value.
Definition wLengthComponent.cpp:38
LengthComponent(float length=2.0f)
Constructs the component with an initial positive length.
Definition wLengthComponent.cpp:21
float getLength() const
Returns the current length.
Definition wLengthComponent.cpp:33
virtual ~LengthComponent()=default
Definition wColorComponent.cpp:9