Why 07-06-2018, 04:00 AM
#1
ALE + Clang_Check likes to give you errors unless you do this.
EDIT: My indentation went poof and I'm too lazy to fix it.
Code:
class Player {
public:
virtual ~Player() = default; // This
Player(const Player&) = default; // Shit
Player& operator=(const Player&) = default; // Right
Player(Player&&) = default; // Over
Player& operator=(Player&&) = default; // Here
explicit Player(const std::string &texturePath);
void draw(sf::RenderWindow *window);
private:
sf::Sprite sprite;
sf::Texture texture;
sf::Vector2f spritePosition;
sf::Vector2u textureSize;
};EDIT: My indentation went poof and I'm too lazy to fix it.
(This post was last modified: 07-06-2018, 04:01 AM by ProfessorChill.)





![[Image: dEDyx9w.png]](https://i.imgur.com/dEDyx9w.png)
![[+]](https://sinister.li/images/modern/collapse_collapsed.png)