32 Coin(std::array<float, 2> position = {0, 0});
61 std::array<float, 2> _position;
62 bool _collected =
false;
A class that represents a coin in the game.
Definition Coin.hpp:24
void setCollected(bool collected)
Set the collected status of the coin.
Definition Coin.cpp:56
Coin(std::array< float, 2 > position={0, 0})
Constructor for Coin class.
Definition Coin.cpp:20
~Coin()
Destructor for Coin class.
Definition Coin.cpp:29
const std::array< float, 2 > & getPosition() const
Gets the position of the coin.
Definition Coin.cpp:38
const bool & isCollected() const
Gets the collected status of the coin.
Definition Coin.cpp:47