HeadBall  1.0
A game
GoalPost.hpp
Go to the documentation of this file.
1 #pragma once
2 #include "Game.hpp"
3 
4 namespace HeadBall{
9  class GoalPost {
10  public:
16  GoalPost (GameDataRef data);
17 
24  void init (sf::Vector2f position, bool isLeft = true);
25 
31  sf::Sprite sprite ( );
32 
33  private:
35 
36  sf::Sprite _sprite;
37  };
38 }
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
Custom namespace used throughout the project.
Definition: AboutState.cpp:6
std::shared_ptr< GameData > GameDataRef
The Shared Pointer of GameData Struct.
Definition: Game.hpp:39