CardGame
Rogue-like card videogame
Loading...
Searching...
No Matches
enemy.h
Go to the documentation of this file.
1#ifndef ENEMY_H
2#define ENEMY_H
3
4#include "enemyMove.h"
5#include "entities/entity.h"
6
7#include <vector>
8
21class Enemy : public Entity
22{
23 public:
33 const EnemyMove& nextMove();
34
35 protected:
41 Enemy(int hp);
42 std::vector<EnemyMove> m_moves{};
44};
45
46#endif // ENEMY_H
Base class for enemies with a predefined move sequence.
Definition: enemy.h:22
const EnemyMove & nextMove()
Returns the next move in the enemy's move sequence.
Definition: enemy.cpp:7
int m_moveIndex
Definition: enemy.h:43
std::vector< EnemyMove > m_moves
Definition: enemy.h:42
Base class representing a combat-capable entity.
Definition: entity.h:18
Describes a single enemy action resolved during combat.
Definition: enemyMove.h:20