PlayerKam.h 568 B

123456789101112131415161718192021
  1. #pragma once
  2. #include <Kam3D.h>
  3. #include <TastaturEreignis.h>
  4. #include <Bildschirm.h>
  5. class PlayerKam : public Framework::Kam3D
  6. {
  7. private:
  8. bool kameraControll;
  9. Framework::Punkt lastMousePos;
  10. int entityId;
  11. public:
  12. PlayerKam(Framework::Bildschirm3D* zScreen);
  13. void setDirection(Framework::Vec3<float> direction);
  14. void doTastaturEreignis(Framework::TastaturEreignis& te) override;
  15. void doMausEreignis(Framework::MausEreignis& me) override;
  16. bool tick(double time) override;
  17. void setEntityId(int id);
  18. void setControlEnabled(bool enabled);
  19. };