25 lines
391 B
C++
Executable File
25 lines
391 B
C++
Executable File
// Snake.h
|
|
#ifndef SNAKE_HPP
|
|
#define SNAKE_HPP
|
|
|
|
#include <SFML/System/Vector2.hpp>
|
|
#include <queue>
|
|
#include "common.hpp"
|
|
|
|
struct Snake {
|
|
public:
|
|
sf::Vector2f headLocation;
|
|
sf::Vector2f speed;
|
|
std::queue<GameSpace*> body;
|
|
void Pop(void);
|
|
void Reset(void);
|
|
};
|
|
|
|
struct Food {
|
|
public:
|
|
sf::Vector2f location;
|
|
void GenerateNewFood(sf::Vector2f boundaries);
|
|
};
|
|
|
|
#endif
|