Portal.h 389 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include "Entity.h"
  3. #include <string>
  4. #include "CrystalPoint.h"
  5. class Portal :
  6. public Entity
  7. {
  8. public:
  9. Portal(const std::string &fileName,
  10. const Vec3f &position,
  11. Vec3f &rotation,
  12. const float &scale);
  13. ~Portal();
  14. bool enter(float deltaTime);
  15. void collide();
  16. int maxCrystals;
  17. bool mayEnter;
  18. private:
  19. int sound_id;
  20. Sound* music;
  21. bool started;
  22. float delay;
  23. };