PlayerKam.h 631 B

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