PixelLightAPI
.
|
Abstract PL physics element base class. More...
#include <Element.h>
Public Member Functions | |
PLPHYSICS_API World & | GetWorld () const |
Returns the world this element is in. | |
virtual PLPHYSICS_API | ~Element () |
Destructor. | |
virtual PLPHYSICS_API bool | IsBody () const =0 |
Returns whether or not this is a body. | |
virtual PLPHYSICS_API bool | IsJoint () const =0 |
Returns whether or not this is a joint. | |
virtual PLPHYSICS_API bool | IsSensor () const =0 |
Returns whether or not this is a sensor. | |
Protected Member Functions | |
PLPHYSICS_API | Element (World &cWorld) |
Constructor. |
Abstract PL physics element base class.
virtual PLPHYSICS_API PLPhysics::Element::~Element | ( | ) | [virtual] |
Destructor.
Reimplemented from PLCore::Element< Element >.
PLPHYSICS_API PLPhysics::Element::Element | ( | World & | cWorld | ) | [protected] |
Constructor.
[in] | cWorld | World this element is in |
PLPHYSICS_API World& PLPhysics::Element::GetWorld | ( | ) | const |
Returns the world this element is in.
virtual PLPHYSICS_API bool PLPhysics::Element::IsBody | ( | ) | const [pure virtual] |
Returns whether or not this is a body.
Implemented in PLPhysics::Body, PLPhysics::Joint, and PLPhysics::Sensor.
virtual PLPHYSICS_API bool PLPhysics::Element::IsJoint | ( | ) | const [pure virtual] |
Returns whether or not this is a joint.
Implemented in PLPhysics::Body, PLPhysics::Joint, and PLPhysics::Sensor.
virtual PLPHYSICS_API bool PLPhysics::Element::IsSensor | ( | ) | const [pure virtual] |
Returns whether or not this is a sensor.
Implemented in PLPhysics::Body, PLPhysics::Joint, and PLPhysics::Sensor.
|