Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class Player
- {
- std::string _pseudo;
- unsigned int _speed;
- unsigned int _team;
- unsigned int _endurance;
- unsigned int _life;
- unsigned int _id;
- bool _AI;
- bool _alive;
- Image *_skin;
- Weapon *_primaryWeapon;
- Weapon *_secondyWeapon;
- Position *_position;
- public:
- Player();
- Player(Class &class);
- virtual ~Player();
- };
- Class IWeapon
- {
- std::string _name;
- unsigned int _id;
- unsigned int _charger;
- unsigned int _damage;
- bool _ground;
- Position *_position;
- };
- class Position
- {
- unsigned int _x;
- unsigned int _y;
- float _rotation;
- private:
- Position(unsigned int x, unsigned int y, float rotation) ;
- Position(Position &position);
- virtual ~Position();
- const unsigned int getX();
- const unsigned int getY();
- const float getRotation();
- void setX(unsigned int x);
- void setY(unsigned int y);
- void getRotation(float rotation);
- void incrX();
- void incrX();
- void incrRotation();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement