Player.h 342 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "Vector.h"
  3. #include <vector>
  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. void draw(void);
  14. static Player* getInstance(void);
  15. static void init(void);
  16. Vec3f position;
  17. Vec2f rotation;
  18. float speed;
  19. };