JancoProject.h 466 B

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