![]() |
wPlot2D version: 0.1.0
A lightweight C++ library for clear and customizable 2D scientific plots.
|
Abstract base class for all ECS components. More...
#include <wComponent.hpp>
Public Member Functions | |
virtual | ~Component ()=default |
virtual void | enable () |
virtual void | disable () |
bool | isEnabled () const |
Checks whether the component is currently active. | |
void | setParent (Entity *parent) |
Sets the parent entity of this component. | |
Entity * | getParent () const |
Returns the parent entity of this component. |
Protected Member Functions | |
Component () | |
Protected constructor to restrict instantiation to derived classes. |
Abstract base class for all ECS components.
Defines the minimal interface required by any component: activation control and access to its owning entity.
Intended to be subclassed by specific component implementations.
Created by Wilfried Koch.
Copyright @ 2025 Wilfried Koch. All rights reserved.
|
virtualdefault |
|
protected |
Protected constructor to restrict instantiation to derived classes.
|
virtual |
|
virtual |
|
nodiscard |
Checks whether the component is currently active.
void wEngine::Component::setParent | ( | Entity * | parent | ) |
Sets the parent entity of this component.
parent | A pointer to the entity that owns this component. |
|
nodiscard |
Returns the parent entity of this component.