PlayerKam.h 758 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include <Screen.h>
  3. #include <Camera3D.h>
  4. #include <KeyboardEvent.h>
  5. #include <Vec3.h>
  6. #include <Timer.h>
  7. class PlayerKam : public Framework::Cam3D
  8. {
  9. private:
  10. bool kameraControll;
  11. int entityId;
  12. Framework::Vec3<float> lastDirection;
  13. int movementFlags;
  14. int lastMovementFlags;
  15. public:
  16. PlayerKam(Framework::Screen3D* zScreen);
  17. void setDirection(Framework::Vec3<float> direction);
  18. void doKeyboardEvent(Framework::KeyboardEvent& te) override;
  19. void doMouseEvent(Framework::MouseEvent& me) override;
  20. bool tick(double time) override;
  21. void setEntityId(int id);
  22. void setControlEnabled(bool enabled);
  23. int getEntityId() const;
  24. Framework::Vec3<float> getDirection() const;
  25. };