first commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#ifndef CLAPTRAP_HPP
|
||||
# define CLAPTRAP_HPP
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
class ClapTrap {
|
||||
private:
|
||||
std::string _name;
|
||||
unsigned int _hit_pts;
|
||||
unsigned int _energy_pts;
|
||||
unsigned int _attack_dmg;
|
||||
|
||||
public:
|
||||
ClapTrap();
|
||||
~ClapTrap();
|
||||
ClapTrap(const ClapTrap ©);
|
||||
ClapTrap(std::string name);
|
||||
ClapTrap &operator=(const ClapTrap &src);
|
||||
|
||||
void attack(const std::string& target);
|
||||
void takeDamage(unsigned int amount);
|
||||
void beRepaired(unsigned int amount);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user