Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- #include <iostream>
- #include <cstdlib>
- #include "human.h"
- #include "creature.h"
- using namespace std;
- human::human()
- {
- }
- human::human(int inStrength, int inHitpoints) : creature(inStrength, inHitpoints)
- {
- }
- int human::getDamage() const
- {
- int damage = creature::getDamage();
- cout << "The human attacks for " << damage << " points!" << endl;
- return damage;
- }
- string human::getSpecies() const{
- return "human";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement