You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
530 B

  1. #pragma once
  2. #include "Graphics.h"
  3. #include "Snake.h"
  4. class Controller{
  5. private:
  6. Snake *snake; //the figure the controler controls
  7. graphics_input inpt;
  8. public:
  9. Controller(Snake* _snake);
  10. Controller();
  11. ~Controller(); //default destructor
  12. graphics_input readInput(void); //basic input methods: sets inpt to what it read if i tread something
  13. void act(void); //basic act method: acts like a joystick
  14. bool wantsToQuit(void); //returns true of the user wants to quit
  15. };