PROTO::KLUDGE  0.1
Quick prototyping library for games using SDL and OpenGL.
pk::StaticPlatform Class Reference

#include <StaticPlatform.hpp>

Collaboration diagram for pk::StaticPlatform:
Collaboration graph

Public Member Functions

 StaticPlatform (b2World *world, GLRect rect)
 Preferred constructor for a StaticBody. More...
 
virtual ~StaticPlatform ()
 
b2World * getWorld ()
 Get a pointer to the Box2D world the static platform is tied to. More...
 

Private Member Functions

 StaticPlatform ()
 Default constructor - Inaccessible. More...
 

Private Attributes

b2World * m_world
 A pointer to the Box2D world. More...
 
b2BodyDef m_bodyDef
 A Box2D body definition structure. More...
 
b2PolygonShape m_shape
 A Box2D polygon shape. More...
 
b2FixtureDef m_fixtureDef
 A Box2D fixture definition structure. More...
 
b2Body * m_body
 A Box2D body. More...
 
GLRect m_rect
 A GLRect structure. More...
 

Constructor & Destructor Documentation

◆ StaticPlatform() [1/2]

pk::StaticPlatform::StaticPlatform ( )
inlineprivate

Default constructor - Inaccessible.

◆ StaticPlatform() [2/2]

pk::StaticPlatform::StaticPlatform ( b2World *  world,
GLRect  rect 
)

Preferred constructor for a StaticBody.

◆ ~StaticPlatform()

virtual pk::StaticPlatform::~StaticPlatform ( )
virtual

Member Function Documentation

◆ getWorld()

b2World * pk::StaticPlatform::getWorld ( )
inline

Get a pointer to the Box2D world the static platform is tied to.

Member Data Documentation

◆ m_body

b2Body* pk::StaticPlatform::m_body
private

A Box2D body.

◆ m_bodyDef

b2BodyDef pk::StaticPlatform::m_bodyDef
private

A Box2D body definition structure.

◆ m_fixtureDef

b2FixtureDef pk::StaticPlatform::m_fixtureDef
private

A Box2D fixture definition structure.

◆ m_rect

GLRect pk::StaticPlatform::m_rect
private

A GLRect structure.

◆ m_shape

b2PolygonShape pk::StaticPlatform::m_shape
private

A Box2D polygon shape.

◆ m_world

b2World* pk::StaticPlatform::m_world
private

A pointer to the Box2D world.


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