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.
 
 
 

23 lines
565 B

#pragma once
#include "Graphics.h"
#include "Snake.h"
#define DEFEAT -1
class Controller{
private:
Snake *snake; //the figure the controler controls
Point snack;
graphics_input inpt;
public:
Controller(Snake* _snake);
Controller();
~Controller(); //default destructor
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
};