Advertisement
Guest User

Untitled

a guest
Oct 16th, 2015
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.94 KB | None | 0 0
  1. Class Player
  2. {
  3.     std::string _pseudo;
  4.  
  5.     unsigned int _speed;
  6.     unsigned int _team;
  7.     unsigned int _endurance;
  8.     unsigned int _life;
  9.     unsigned int _id;
  10.  
  11.     bool _AI;
  12.     bool _alive;
  13.  
  14.     Image *_skin;
  15.     Weapon *_primaryWeapon;
  16.     Weapon *_secondyWeapon;
  17.  
  18.     Position *_position;
  19.  
  20.     public:
  21.     Player();
  22.     Player(Class &class);
  23.     virtual ~Player();
  24. };
  25.  
  26. Class IWeapon
  27. {
  28.     std::string _name;
  29.  
  30.     unsigned int _id;
  31.     unsigned int _charger;
  32.     unsigned int _damage;
  33.  
  34.     bool _ground;
  35.  
  36.     Position *_position;
  37. };
  38.  
  39. class Position
  40. {
  41.     unsigned int _x;
  42.     unsigned int _y;
  43.     float _rotation;
  44.  
  45.     private:
  46.     Position(unsigned int x, unsigned int y, float rotation) ;
  47.     Position(Position &position);
  48.     virtual ~Position();
  49.  
  50.     const unsigned int getX();
  51.     const unsigned int getY();
  52.     const float getRotation();
  53.  
  54.  
  55.     void setX(unsigned int x);
  56.     void setY(unsigned int y);
  57.     void getRotation(float rotation);
  58.  
  59.     void incrX();
  60.     void incrX();
  61.     void incrRotation();
  62. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement