![]() |
HeadBall
1.0
A game
|
Class for invisible wall around the field and above the goalpost. More...
#include <Wall.hpp>

Public Member Functions | |
| Wall (GameDataRef data, WorldRef world) | |
| Construct a new Wall object. More... | |
| void | init () |
| Initiate the wall object. More... | |
Private Attributes | |
| GameDataRef | _data |
| The shared pointer for GameData More... | |
| WorldRef | _world |
| The shared pointer for b2World More... | |
| b2BodyDef | _leftDef |
| b2BodyDef | _rightDef |
| b2BodyDef | _topDef |
| b2BodyDef | _lPostDef |
| b2BodyDef | _rPostDef |
| The definition of Box2d bodies More... | |
| b2Body * | _leftBody |
| The Box2d body of left wall More... | |
| b2Body * | _rightBody |
| The Box2d body of right wall More... | |
| b2Body * | _topBody |
| The Box2D body of top wall More... | |
| b2Body * | _leftPost |
| The Box2D body of wall for left goal post. More... | |
| b2Body * | _rightPost |
| The Box2D body of wall for right goal post. More... | |
| b2PolygonShape | _leftShape |
| b2PolygonShape | _rightShape |
| b2PolygonShape | _topShape |
| b2PolygonShape | _lPostShape |
| b2PolygonShape | _rPostShape |
| The polygon shape for the fixure definition. More... | |
| b2FixtureDef | _leftFixture |
| b2FixtureDef | _rightFixture |
| b2FixtureDef | _topFixture |
| b2FixtureDef | _lPostFixture |
| b2FixtureDef | _rPostFixture |
| The fixture of wall for defining its properties. More... | |
Class for invisible wall around the field and above the goalpost.
| HeadBall::Wall::Wall | ( | GameDataRef | data, |
| WorldRef | world | ||
| ) |
Construct a new Wall object.
| data | The Shared Pointer for game data |
| world | The Shared pointer for Box2D world |
| void HeadBall::Wall::init | ( | ) |
Initiate the wall object.
|
private |
The shared pointer for GameData
|
private |
The Box2d body of left wall
|
private |
|
private |
|
private |
The Box2D body of wall for left goal post.
|
private |
|
private |
|
private |
|
private |
|
private |
The Box2d body of right wall
|
private |
|
private |
|
private |
The Box2D body of wall for right goal post.
|
private |
|
private |
The definition of Box2d bodies
|
private |
The fixture of wall for defining its properties.
|
private |
The polygon shape for the fixure definition.
|
private |
The Box2D body of top wall
|
private |
|
private |
|
private |
|
private |
The shared pointer for b2World