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.
 
 
 

27 lines
723 B

#pragma once
#include "../input-output/Graphics.h"
#include "../components/Snake.h"
#include "../components/Point.h"
#define DEFEAT -1
class Controller{
private:
Snake *snake; //the figure the controler controls
Point snack;
graphics_input inpt;
unsigned int currentScore;
public:
Controller(Snake* _snake);
Controller();
~Controller(); //default destructor
unsigned int getCurrScore(void);
void resetScore(void);
graphics_input readInput(void); //basic input methods: sets inpt to what it read if i tread something
int act(void); //basic act method: acts like a joystick
bool wantsToQuit(void); //returns true of the user wants to quit
};