Advertisement
Guest User

Monster.cpp

a guest
Sep 27th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <string>
  4. #include "Monster.h"
  5.  
  6.     using namespace std;
  7.      
  8.      
  9.      int randomNumber;
  10.  
  11.      int health;
  12.      int attack;
  13.      int currentExp;
  14.      int expToLevel;
  15.      int level;
  16.      int currentHealth;
  17.      string monsterNamer;
  18.      Monster::Monster()
  19.      {
  20.      }
  21.  
  22.     void Monster::fightMonster(string monsterName, int monsterHealth, int monsterAttack, int expGain)
  23.     {
  24.  
  25.     cout << "This monsters name is " << monsterName << " and he has " << monsterHealth << " health| " << monsterAttack << " attack| " << expGain << " exp will be gained." << endl;
  26.     cout << "" << endl;
  27. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement