HeadBall  1.0
A game
Public Member Functions | Private Attributes | List of all members
HeadBall::UpHill Class Reference

The Uphill part of the game field, below the goal post and above the ground. More...

#include <Uphill.hpp>

Collaboration diagram for HeadBall::UpHill:
Collaboration graph

Public Member Functions

 UpHill (GameDataRef data, WorldRef world)
 Construct a new Up Hill object. More...
 
void init (sf::Vector2i position)
 Initiate the Up Hill ubject. More...
 
sf::RectangleShape shape ()
 Return the shape of Up Hill object. More...
 

Private Attributes

GameDataRef _data
 The Shared Pointer of the game data. More...
 
WorldRef _world
 The Shared Pointer of Box2D World. More...
 
sf::RectangleShape _shape
 The SFML shape of the uphill. More...
 
b2BodyDef _bodyDef
 The Definition of Box2D body. More...
 
b2Body * _body
 The Box2D body of uphill. More...
 
b2PolygonShape _polyShape
 The polygon shape for fixture definition. More...
 
b2FixtureDef _fixture
 The fixture of uphill for defining its properties. More...
 

Detailed Description

The Uphill part of the game field, below the goal post and above the ground.

Constructor & Destructor Documentation

◆ UpHill()

HeadBall::UpHill::UpHill ( GameDataRef  data,
WorldRef  world 
)

Construct a new Up Hill object.

Parameters
dataThe Shared Pointer of game data
worldThe Shared Pointer of Box2D world

Member Function Documentation

◆ init()

void HeadBall::UpHill::init ( sf::Vector2i  position)

Initiate the Up Hill ubject.

Parameters
positionThe position where object is placed

◆ shape()

sf::RectangleShape HeadBall::UpHill::shape ( )

Return the shape of Up Hill object.

Returns
sf::RectangleShape The shape of Up Hill obkect

Member Data Documentation

◆ _body

b2Body* HeadBall::UpHill::_body
private

The Box2D body of uphill.

◆ _bodyDef

b2BodyDef HeadBall::UpHill::_bodyDef
private

The Definition of Box2D body.

◆ _data

GameDataRef HeadBall::UpHill::_data
private

The Shared Pointer of the game data.

◆ _fixture

b2FixtureDef HeadBall::UpHill::_fixture
private

The fixture of uphill for defining its properties.

◆ _polyShape

b2PolygonShape HeadBall::UpHill::_polyShape
private

The polygon shape for fixture definition.

◆ _shape

sf::RectangleShape HeadBall::UpHill::_shape
private

The SFML shape of the uphill.

◆ _world

WorldRef HeadBall::UpHill::_world
private

The Shared Pointer of Box2D World.


The documentation for this class was generated from the following files: