|
| const EnemyMove & | nextMove () |
| | Returns the next move in the enemy's move sequence.
|
| |
| | Entity () |
| |
| | Entity (int hp, int attack=0, int armor=0) |
| |
| std::string_view | getName () const |
| | Returns the display name of the entity.
|
| |
| int | getArmor () const |
| | Returns the current armor value.
|
| |
| int | getAttack () const |
| | Returns the current attack value.
|
| |
| void | resetArmor () |
| | Resets armor to zero.
|
| |
| void | resetAttack () |
| | Resets attack to zero.
|
| |
| void | increaseArmor (int amount) |
| | Increases armor by the given amount.
|
| |
| void | increaseAttack (int amount) |
| | Increases attack by the given amount.
|
| |
| void | lowerArmor (int amount) |
| | Decreases armor by the given amount.
|
| |
| int | getHp () const |
| | Returns the current HP value.
|
| |
| void | lowerHp (int amount) |
| | Decreases HP by the given amount.
|
| |
| void | increaseHp (int amount) |
| | Increases HP by the given amount.
|
| |
Base class for enemies with a predefined move sequence.
Enemy represents a non-player combat entity whose behavior is defined by an ordered list of EnemyMove objects.
Each call to nextMove() returns the current move and advances the internal move index, typically cycling through the sequence.
Enemy does not execute its moves directly; orchestration and effect resolution are handled externally (e.g., by CardMatch).