You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
376 B
C++

#ifndef HERO_H
#define HERO_H
class Hero
{
private:
int hero_charges;
public:
explicit Hero(int initial_charges = 0);
// Add more charges for hero to use
inline void refillCharges(int append_charges);
// Get amount of charges
inline int charges() const noexcept;
// Spend one charge on action
inline bool useCharge();
};
#endif // HERO_H