MoBaT

player.h

Jun 25th, 2011
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.25 KB | None | 0 0
  1. #ifndef PLAYER_H
  2. #define PLAYER_H
  3. #include <iostream>
  4. #include <string>
  5. #include "Player.h"
  6. using namespace std;
  7.  
  8. class Player
  9. {
  10.     private:
  11.         string _name;
  12.         int _health;
  13.         int _strengh;
  14.         int _agility;
  15.         string _mf;
  16.         int _race;
  17.         int _xCoord;
  18.         int _yCoord;
  19.         int _win;
  20.         int _tryX;
  21.         int _tryY;
  22.  
  23.     public:
  24.         Player();
  25.         Player(string name, int health, int strengh, int agility, string mf, int race, int xCoord, int yCoord, int win, int tryX, int tryY);
  26.         void set_name(string playerName);
  27.         void set_sex(string playerSex);
  28.         void set_race(int playerRace);
  29.         void set_tryX(int tryX);
  30.         void set_tryY(int tryY);
  31.         void set_xCoord(int coord);
  32.         void set_yCoord(int coord);
  33.  
  34.         void returnRace();
  35.         string returnSex();
  36.         string returnName();
  37.         int returnHealth();;
  38.         void returnStat(int stat);
  39.         int returnCoord(int coord);
  40.         int returnTry(int coord);
  41.         int returnWin();
  42.  
  43.         void addStat(int stat, int amount);
  44.         void subtractStat(int stat, int amount);
  45.  
  46.         void createStats();
  47.         void IsDead();
  48.         ~Player();
  49. };
  50.  
  51.  
  52. #endif // PLAYER_H
Advertisement
Add Comment
Please, Sign In to add comment