26 lines
434 B
C++
26 lines
434 B
C++
#ifndef CLAPTRAP_HPP
|
|
# define CLAPTRAP_HPP
|
|
|
|
#include <iostream>
|
|
|
|
class ClapTrap {
|
|
public:
|
|
ClapTrap();
|
|
ClapTrap(std::string name);
|
|
~ClapTrap();
|
|
ClapTrap(const ClapTrap &clap);
|
|
ClapTrap& operator=(const ClapTrap &clap);
|
|
|
|
void attack(const std::string& target);
|
|
void takeDamage(unsigned int amount);
|
|
void beRepaired(unsigned int amount);
|
|
|
|
protected:
|
|
std::string name;
|
|
int hp;
|
|
int energy;
|
|
int damage;
|
|
};
|
|
|
|
#endif
|