Player.h 361 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "Vector.h"
  3. class Model;
  4. class Player
  5. {
  6. private:
  7. static Player* instance;
  8. public:
  9. Player();
  10. ~Player();
  11. void setCamera();
  12. void setPosition(float angle, float fac, bool height);
  13. static Player* getInstance(void);
  14. static void init(void);
  15. Vec3f position;
  16. Vec2f rotation;
  17. Model* leftWeapon;
  18. Model* rightWeapon;
  19. float speed;
  20. };