SnakeNode is now depreciated due to swapping to a deque

This commit is contained in:
TriantaTV 2022-07-25 15:43:42 -05:00
parent 165e531205
commit c7263dfc1f
2 changed files with 12 additions and 12 deletions

View File

@ -51,5 +51,5 @@ void Snake::MoveSnake()
*/
return;
}
SnakeNode::SnakeNode();
SnakeNode::SnakeNode(sf::Vector2f addBodyPiece);
// SnakeNode::SnakeNode();
// SnakeNode::SnakeNode(sf::Vector2f addBodyPiece);

View File

@ -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
{