![]() |
HeadBall
1.0
A game
|
Class for defining the ground in the game world. More...
#include <Ground.hpp>
Public Member Functions | |
Ground (GameDataRef data, WorldRef world) | |
Construct a new Ground object. More... | |
void | init () |
Initiate the Ground Object. More... | |
sf::RectangleShape | shape () |
Return the shape of the Ground 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 ground. More... | |
b2BodyDef | _bodyDef |
The Definition of Box2D body. More... | |
b2Body * | _body |
The Box2D body of ground. More... | |
b2PolygonShape | _polyShape |
The polygon shape for fixture definition. More... | |
b2FixtureDef | _fixture |
The fixture of ground for defining its properties. More... | |
Class for defining the ground in the game world.
HeadBall::Ground::Ground | ( | GameDataRef | data, |
WorldRef | world | ||
) |
Construct a new Ground object.
data | The Shared Pointer for game data |
world | The Shared pointer for Box2D world |
void HeadBall::Ground::init | ( | ) |
Initiate the Ground Object.
sf::RectangleShape HeadBall::Ground::shape | ( | ) |
|
private |
The Box2D body of ground.
|
private |
The Definition of Box2D body.
|
private |
The Shared Pointer of the game data.
|
private |
The fixture of ground for defining its properties.
|
private |
The polygon shape for fixture definition.
|
private |
The SFML shape of the ground.
|
private |
The Shared Pointer of Box2D World.