#ifndef PLAYERINTERFACE_HPP #define PLAYERINTERFACE_HPP #include "common.hpp" #include const int kGridSize = 25; namespace snakeplusplus { class PlayerInput { public: PlayerInput(void); PlayerDirection GetPlayerInput(void); private: PlayerDirection lastPlayerInput; }; class PlayerOutput { public: sf::Vector2f gameBoundaries; PlayerOutput(void); bool IsOpen(void); void CheckContinue(void); void DisplayGameState(std::vector< std::vector >& gameBoard); void StartGameWindow(void); private: void CheckWindowEvents(void); void DisplayEndScreen(void); void DrawEmpty(sf::Vector2f location); void DrawFood(sf::Vector2f location); void DrawSnake(sf::Vector2f location); sf::RenderWindow gameWindow; sf::VideoMode gameVideoSettings; sf::RectangleShape drawObject; bool isWindowAlive; sf::Time delay = sf::milliseconds(60); }; } #endif