Player.h 636 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #include "Header.h"
  3. #include "Weapon.h"
  4. class Player
  5. {
  6. public:
  7. ~Player();
  8. struct Eyes
  9. {
  10. float posX = 0;
  11. float posY = 0;
  12. float posZ = 0;
  13. float rotX = 0;
  14. float rotY = 0;
  15. } eyes;
  16. void Display(void);
  17. //static Player* GetInstance(void);
  18. static Player& GetInstance(void);
  19. void PlayerMoveEyes(const float angle, const float fac, const bool heigth);
  20. void PlayerRotateEyes(const int dx, const int dy);
  21. private:
  22. int level;
  23. int xp;
  24. Weapon* right = nullptr;
  25. Weapon* left = nullptr;
  26. vector<Weapon> weapons;
  27. Player();
  28. Player(Player const&);
  29. void operator=(Player const&);
  30. //static Player* player;
  31. };