#include <IComponent.hpp>
|
| | IComponent (ClientCore *clientCore) |
| | IComponent, constructor of IComponent. More...
|
| |
| virtual | ~IComponent ()=default |
| | ~IComponent, destructor of IComponent More...
|
| |
| virtual ComponentType | getType () const =0 |
| | getType, get the type of the component 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 | addActionTarget (std::shared_ptr< IComponent > component)=0 |
| | addActionTarget, add a target to the action More...
|
| |
| virtual void | addSubComponent (std::shared_ptr< IComponent > component)=0 |
| | addSubComponent, add a sub component More...
|
| |
| virtual void | handleEvent (const sf::Event &event, sf::RenderWindow &window)=0 |
| | handleEvent, handle the event More...
|
| |
| virtual void | setAttribute (std::string attribute)=0 |
| | setAttribute, set the attribute More...
|
| |
| virtual std::string | getAttribute ()=0 |
| | getAttribute, get the attribute More...
|
| |
Definition at line 27 of file IComponent.hpp.
◆ IComponent()
◆ ~IComponent()
| virtual IComponent::~IComponent |
( |
| ) |
|
|
virtualdefault |
◆ action()
| virtual void IComponent::action |
( |
| ) |
|
|
pure virtual |
◆ addActionTarget()
| virtual void IComponent::addActionTarget |
( |
std::shared_ptr< IComponent > |
component | ) |
|
|
pure virtual |
addActionTarget, add a target to the action
- Parameters
-
Implemented in AComponent.
◆ addSubComponent()
| virtual void IComponent::addSubComponent |
( |
std::shared_ptr< IComponent > |
component | ) |
|
|
pure virtual |
addSubComponent, add a sub component
- Parameters
-
Implemented in AComponent.
◆ display()
| virtual void IComponent::display |
( |
sf::RenderWindow & |
window | ) |
|
|
pure virtual |
◆ getAttribute()
| virtual std::string IComponent::getAttribute |
( |
| ) |
|
|
pure virtual |
getAttribute, get the attribute
- Returns
- attribute
Implemented in AComponent.
◆ getType()
getType, get the type of the component
Implemented in AComponent.
◆ handleEvent()
| virtual void IComponent::handleEvent |
( |
const sf::Event & |
event, |
|
|
sf::RenderWindow & |
window |
|
) |
| |
|
pure virtual |
◆ setAttribute()
| virtual void IComponent::setAttribute |
( |
std::string |
attribute | ) |
|
|
pure virtual |
setAttribute, set the attribute
- Parameters
-
Implemented in AComponent.
◆ _attribute
| std::string IComponent::_attribute |
|
protected |
◆ _clientCore
◆ _type
◆ action_target
| std::vector<std::shared_ptr<IComponent> > IComponent::action_target |
|
protected |
◆ sub_components
| std::vector<std::shared_ptr<IComponent> > IComponent::sub_components |
|
protected |
The documentation for this class was generated from the following file: