|
R-Type
Distributed multiplayer game engine in C++
|
Component identifying an entity as an enemy with AI behavior. More...
#include <Enemy.hpp>


Public Member Functions | |
| Enemy (int enemyType, int scoreValue) | |
| Constructor with enemy parameters. | |
| ~Enemy () override=default | |
| int | getEnemyType () const |
| Get enemy type. | |
| int | getScoreValue () const |
| Get score value. | |
| void | setEnemyType (int enemyType) |
| Set enemy type. | |
| void | setScoreValue (int scoreValue) |
| Set score value. | |
| ComponentType | getType () const override |
| Get the component type ID. | |
Public Member Functions inherited from ecs::IComponent | |
| virtual | ~IComponent ()=default |
| Virtual destructor. | |
Private Attributes | |
| int | _enemyType |
| Enemy type/classification. | |
| int | _scoreValue |
| Score points awarded on destruction. | |
Component identifying an entity as an enemy with AI behavior.
Stores enemy-specific data including type classification, score value awarded on destruction, and attack pattern identifier for AI systems.
|
inline |
|
overridedefault |
|
inline |
Get enemy type.
Definition at line 34 of file Enemy.hpp.
References _enemyType.
Referenced by Server::_serializeEntity().
|
inline |
Get score value.
Definition at line 40 of file Enemy.hpp.
References _scoreValue.
|
inlineoverridevirtual |
Get the component type ID.
Implements ecs::IComponent.
|
inline |
Set enemy type.
| enemyType | New enemy classification |
Definition at line 46 of file Enemy.hpp.
References _enemyType.
|
inline |
Set score value.
| scoreValue | New score value |
Definition at line 52 of file Enemy.hpp.
References _scoreValue.
|
private |
Enemy type/classification.
Definition at line 61 of file Enemy.hpp.
Referenced by getEnemyType(), and setEnemyType().
|
private |
Score points awarded on destruction.
Definition at line 62 of file Enemy.hpp.
Referenced by getScoreValue(), and setScoreValue().