The Goalpost to be displayed in GameState.
Definition: GoalPost.hpp:9
sf::Sprite _sprite
The sprite of the goal post.
Definition: GoalPost.hpp:36
GameDataRef _data
The Shared Pointer of game data.
Definition: GoalPost.hpp:34
GoalPost(GameDataRef data)
Construct a new Goal Post object.
Definition: GoalPost.cpp:6
void init(sf::Vector2f position, bool isLeft=true)
Initiate the GoalPost object.
Definition: GoalPost.cpp:8
sf::Sprite sprite()
Return the sprite to be displayed in the GameState.
Definition: GoalPost.cpp:27