|
RType
|
#include <AComponent.hpp>


Public Member Functions | |
| AComponent (ClientCore *clientCore) | |
| AComponent, constructor of AComponent. More... | |
| ~AComponent () override=default | |
| ~AComponent, destructor of AComponent More... | |
| ComponentType | getType () const override |
| getType, get the type of the component More... | |
| void | addActionTarget (std::shared_ptr< IComponent > component) override |
| addActionTarget, add a target to the action More... | |
| void | addSubComponent (std::shared_ptr< IComponent > component) override |
| addSubComponent, add a sub component More... | |
| void | setAttribute (std::string attribute) override |
| setAttribute, set the attribute More... | |
| std::string | getAttribute () override |
| getAttribute, get the attribute More... | |
Public Member Functions inherited from IComponent | |
| IComponent (ClientCore *clientCore) | |
| IComponent, constructor of IComponent. More... | |
| virtual | ~IComponent ()=default |
| ~IComponent, destructor of IComponent More... | |
| virtual void | action ()=0 |
| action, action of the component More... | |
| virtual void | display (sf::RenderWindow &window)=0 |
| display, display the component More... | |
| virtual void | handleEvent (const sf::Event &event, sf::RenderWindow &window)=0 |
| handleEvent, handle the event More... | |
Additional Inherited Members | |
Protected Attributes inherited from IComponent | |
| std::string | _attribute |
| ComponentType | _type |
| std::vector< std::shared_ptr< IComponent > > | action_target |
| std::vector< std::shared_ptr< IComponent > > | sub_components |
| ClientCore * | _clientCore |
Definition at line 14 of file AComponent.hpp.
|
inlineexplicit |
AComponent, constructor of AComponent.
Definition at line 21 of file AComponent.hpp.
References IComponent::IComponent().
Referenced by ButtonComponent::ButtonComponent(), InputComponent::InputComponent(), MusicComponent::MusicComponent(), SoundComponent::SoundComponent(), SpriteComponent::SpriteComponent(), and TextComponent::TextComponent().


|
overridedefault |
~AComponent, destructor of AComponent
|
overridevirtual |
addActionTarget, add a target to the action
| component |
Implements IComponent.
Definition at line 22 of file AComponent.cpp.
|
overridevirtual |
addSubComponent, add a sub component
| component |
Implements IComponent.
Definition at line 31 of file AComponent.cpp.
|
overridevirtual |
getAttribute, get the attribute
Implements IComponent.
Definition at line 49 of file AComponent.cpp.
References IComponent::_attribute.
|
overridevirtual |
getType, get the type of the component
Implements IComponent.
Definition at line 13 of file AComponent.cpp.
References IComponent::_type.
|
overridevirtual |
setAttribute, set the attribute
| attribute |
Implements IComponent.
Definition at line 40 of file AComponent.cpp.
References IComponent::_attribute.