CrystalPoint.h 675 B

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