|
R-Type
Distributed multiplayer game engine in C++
|
Component for static or destructible walls/obstacles. More...
#include <Wall.hpp>


Public Member Functions | |
| Wall (bool destructible=false) | |
| Constructor. | |
| ~Wall () override=default | |
| bool | isDestructible () const |
| Check if the wall is destructible. | |
| void | setDestructible (bool destructible) |
| Set destructible state. | |
| ComponentType | getType () const override |
| Get the component type ID. | |
Public Member Functions inherited from ecs::IComponent | |
| virtual | ~IComponent ()=default |
| Virtual destructor. | |
Private Attributes | |
| bool | _destructible |
| Can this wall be destroyed? | |
Component for static or destructible walls/obstacles.
Walls are obstacles that can be destructible or indestructible. They use Transform, Collider, and optionally Health components.
|
inlineexplicit |
|
overridedefault |
|
inlineoverridevirtual |
Get the component type ID.
Implements ecs::IComponent.
|
inline |
Check if the wall is destructible.
Definition at line 34 of file Wall.hpp.
References _destructible.
|
inline |
Set destructible state.
| destructible | New state |
Definition at line 40 of file Wall.hpp.
References _destructible.
|
private |
Can this wall be destroyed?
Definition at line 49 of file Wall.hpp.
Referenced by isDestructible(), and setDestructible().