The Goalpost to be displayed in GameState.
More...
#include <GoalPost.hpp>
The Goalpost to be displayed in GameState.
◆ GoalPost()
Construct a new Goal Post object.
- Parameters
-
data | The Shared Pointer of game data |
◆ init()
void HeadBall::GoalPost::init |
( |
sf::Vector2f |
position, |
|
|
bool |
isLeft = true |
|
) |
| |
Initiate the GoalPost object.
- Parameters
-
position | The position where the GoalPost is placed |
isLeft | To specify whether the GoalPost is left post or right post, for keeping appropriate sprite for appropriate post |
◆ sprite()
sf::Sprite HeadBall::GoalPost::sprite |
( |
| ) |
|
Return the sprite to be displayed in the GameState.
- Returns
- sf::Sprite The sprite to be displayed
◆ _data
The Shared Pointer of game data.
◆ _sprite
sf::Sprite HeadBall::GoalPost::_sprite |
|
private |
The sprite of the goal post.
The documentation for this class was generated from the following files: