From c7263dfc1f44957bd549cc699ad6467308e6410d Mon Sep 17 00:00:00 2001 From: TriantaTV <56975502+TriantaTV@users.noreply.github.com> Date: Mon, 25 Jul 2022 15:43:42 -0500 Subject: [PATCH] SnakeNode is now depreciated due to swapping to a deque --- src/Snake.cpp | 4 ++-- src/Snake.h | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Snake.cpp b/src/Snake.cpp index b0fba5b..c9df30a 100644 --- a/src/Snake.cpp +++ b/src/Snake.cpp @@ -51,5 +51,5 @@ void Snake::MoveSnake() */ return; } -SnakeNode::SnakeNode(); -SnakeNode::SnakeNode(sf::Vector2f addBodyPiece); +// SnakeNode::SnakeNode(); +// SnakeNode::SnakeNode(sf::Vector2f addBodyPiece); diff --git a/src/Snake.h b/src/Snake.h index 5c9e4c5..0dc52d6 100644 --- a/src/Snake.h +++ b/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 {