Advertisement
ssnr

Untitled

Oct 11th, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include <string>
  2. #include <iostream>
  3. #include <cstdlib>
  4.  
  5. #include "human.h"
  6. #include "creature.h"
  7.  
  8. using namespace std;
  9.  
  10.  
  11. human::human()
  12. {
  13.  
  14.  
  15. }
  16.  
  17. human::human(int inStrength, int inHitpoints) : creature(inStrength, inHitpoints)
  18. {
  19.  
  20. }
  21.  
  22. int human::getDamage() const
  23. {
  24. int damage = creature::getDamage();
  25. cout << "The human attacks for " << damage << " points!" << endl;
  26. return damage;
  27. }
  28.  
  29. string human::getSpecies() const{
  30. return "human";
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement