CardGame
Rogue-like card videogame
Loading...
Searching...
No Matches
WolfPack Class Reference

#include <wolfPack.h>

Inheritance diagram for WolfPack:
Collaboration diagram for WolfPack:

Public Member Functions

 WolfPack (int hp=30)
 
- Public Member Functions inherited from Enemy
const EnemyMovenextMove ()
 Returns the next move in the enemy's move sequence.
 
- Public Member Functions inherited from Entity
 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.
 

Additional Inherited Members

- Protected Member Functions inherited from Enemy
 Enemy (int hp)
 Constructs an enemy with the given starting HP.
 
- Protected Attributes inherited from Enemy
std::vector< EnemyMovem_moves {}
 
int m_moveIndex {0}
 
- Protected Attributes inherited from Entity
int m_hp {}
 
int m_armor {}
 
int m_attack {}
 
std::string m_name {}
 

Constructor & Destructor Documentation

◆ WolfPack()

WolfPack::WolfPack ( int  hp = 30)

The documentation for this class was generated from the following files: