SnakeNode is now depreciated due to swapping to a deque
This commit is contained in:
parent
165e531205
commit
c7263dfc1f
@ -51,5 +51,5 @@ void Snake::MoveSnake()
|
||||
*/
|
||||
return;
|
||||
}
|
||||
SnakeNode::SnakeNode();
|
||||
SnakeNode::SnakeNode(sf::Vector2f addBodyPiece);
|
||||
// SnakeNode::SnakeNode();
|
||||
// SnakeNode::SnakeNode(sf::Vector2f addBodyPiece);
|
||||
|
20
src/Snake.h
20
src/Snake.h
@ -6,16 +6,16 @@
|
||||
bool SnakeCollision(sf::RectangleShape object1, sf::RectangleShape object2);
|
||||
void SnakeMovement(sf::Keyboard keyboard);
|
||||
|
||||
class SnakeNode
|
||||
{
|
||||
private:
|
||||
// sf::RectangleShape snakeBody(sf::Vector2f(25,25));
|
||||
sf::Vector2f snakeBodyLocation;
|
||||
SnakeNode* next;
|
||||
public:
|
||||
SnakeNode();
|
||||
SnakeNode(sf::Vector2f addBodyPiece);
|
||||
};
|
||||
// class SnakeNode
|
||||
// {
|
||||
// private:
|
||||
// // sf::RectangleShape snakeBody(sf::Vector2f(25,25));
|
||||
// sf::Vector2f snakeBodyLocation;
|
||||
// SnakeNode* next;
|
||||
// public:
|
||||
// SnakeNode();
|
||||
// SnakeNode(sf::Vector2f addBodyPiece);
|
||||
// };
|
||||
|
||||
class Snake
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user