cirno-puzzle/hero.h

23 lines
376 B
C
Raw Normal View History

2020-02-19 18:50:09 +01:00
#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