CrystalPoint.h 618 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #pragma once
  2. class WorldHandler;
  3. class SoundSystem;
  4. class Player;
  5. #include "Vector.h"
  6. #include "SoundSystem.h"
  7. class KeyboardState
  8. {
  9. public:
  10. bool keys[256];
  11. bool special[256];
  12. bool control, shift, alt;
  13. KeyboardState();
  14. };
  15. class CrystalPoint
  16. {
  17. public:
  18. void init();
  19. void draw();
  20. void update();
  21. WorldHandler* worldhandler;
  22. Player* player;
  23. static int width, height;
  24. KeyboardState keyboardState;
  25. KeyboardState prevKeyboardState;
  26. Vec2f mouseOffset;
  27. Vec2f mousePosition;
  28. float lastFrameTime;
  29. static SoundSystem& GetSoundSystem() { return sound_system; }
  30. private:
  31. static SoundSystem sound_system;
  32. };