|
| BoxObstacle (void) |
|
virtual | ~BoxObstacle () |
|
virtual bool | init () override |
|
virtual bool | init (const Vec2 pos) override |
|
virtual bool | init (const Vec2 pos, const Size size) |
|
const Size | getDimension () const |
|
void | setDimension (const Size value) |
|
void | setDimension (float width, float height) |
|
float | getWidth () const |
|
void | setWidth (float value) |
|
float | getHeight () const |
|
void | setHeight (float value) |
|
virtual void | createFixtures () override |
|
virtual void | releaseFixtures () override |
|
| SimpleObstacle () |
|
virtual | ~SimpleObstacle () |
|
virtual b2BodyType | getBodyType () const override |
|
virtual void | setBodyType (b2BodyType value) override |
|
virtual Vec2 | getPosition () const override |
|
virtual void | setPosition (const Vec2 value) override |
|
virtual void | setPosition (float x, float y) override |
|
virtual float | getX () const override |
|
virtual void | setX (float value) override |
|
virtual float | getY () const override |
|
virtual void | setY (float value) override |
|
virtual float | getAngle () const override |
|
virtual void | setAngle (float value) override |
|
virtual Vec2 | getLinearVelocity () const override |
|
virtual void | setLinearVelocity (const Vec2 value) override |
|
virtual void | setLinearVelocity (float x, float y) override |
|
virtual float | getVX () const override |
|
virtual void | setVX (float value) override |
|
virtual float | getVY () const override |
|
virtual void | setVY (float value) override |
|
virtual float | getAngularVelocity () const override |
|
virtual void | setAngularVelocity (float value) override |
|
virtual bool | isEnabled () const override |
|
virtual void | setEnabled (bool value) override |
|
virtual bool | isAwake () const override |
|
virtual void | setAwake (bool value) override |
|
virtual bool | isSleepingAllowed () const override |
|
virtual void | setSleepingAllowed (bool value) override |
|
virtual bool | isBullet () const override |
|
virtual void | setBullet (bool value) override |
|
virtual bool | isFixedRotation () const override |
|
virtual void | setFixedRotation (bool value) override |
|
virtual float | getGravityScale () const override |
|
virtual void | setGravityScale (float value) override |
|
virtual float | getLinearDamping () const override |
|
virtual void | setLinearDamping (float value) override |
|
virtual float | getAngularDamping () const override |
|
virtual void | setAngularDamping (float value) override |
|
virtual void | setDensity (float value) override |
|
virtual void | setFriction (float value) override |
|
virtual void | setRestitution (float value) override |
|
virtual void | setSensor (bool value) override |
|
virtual void | setFilterData (b2Filter value) override |
|
virtual Vec2 | getCentroid () const override |
|
virtual void | setCentroid (const Vec2 value) override |
|
virtual void | setCentroid (float x, float y) override |
|
virtual float | getInertia () const override |
|
virtual void | setInertia (float value) override |
|
virtual float | getMass () const override |
|
virtual void | setMass (float value) override |
|
virtual void | resetMass () override |
|
virtual b2Body * | getBody () override |
|
virtual bool | activatePhysics (b2World &world) override |
|
virtual void | deactivatePhysics (b2World &world) override |
|
virtual void | createFixtures () |
|
virtual void | releaseFixtures () |
|
virtual void | update (float delta) override |
|
int | getPositionSnap () |
|
void | setPositionSnap (unsigned int snap) |
|
int | getAngleSnap () |
|
void | setAngleSnap (unsigned int snap) |
|
| Obstacle (void) |
|
virtual | ~Obstacle () |
|
virtual bool | init () |
|
virtual bool | init (const Vec2 vec) |
|
virtual b2BodyType | getBodyType () const |
|
virtual void | setBodyType (b2BodyType value) |
|
virtual Vec2 | getPosition () const |
|
virtual void | setPosition (const Vec2 value) |
|
virtual void | setPosition (float x, float y) |
|
virtual float | getX () const |
|
virtual void | setX (float value) |
|
virtual float | getY () const |
|
virtual void | setY (float value) |
|
virtual float | getAngle () const |
|
virtual void | setAngle (float value) |
|
virtual Vec2 | getLinearVelocity () const |
|
virtual void | setLinearVelocity (const Vec2 value) |
|
virtual void | setLinearVelocity (float x, float y) |
|
virtual float | getVX () const |
|
virtual void | setVX (float value) |
|
virtual float | getVY () const |
|
virtual void | setVY (float value) |
|
virtual float | getAngularVelocity () const |
|
virtual void | setAngularVelocity (float value) |
|
virtual bool | isEnabled () const |
|
virtual void | setEnabled (bool value) |
|
virtual bool | isAwake () const |
|
virtual void | setAwake (bool value) |
|
virtual bool | isSleepingAllowed () const |
|
virtual void | setSleepingAllowed (bool value) |
|
virtual bool | isBullet () const |
|
virtual void | setBullet (bool value) |
|
virtual bool | isFixedRotation () const |
|
virtual void | setFixedRotation (bool value) |
|
virtual float | getGravityScale () const |
|
virtual void | setGravityScale (float value) |
|
virtual float | getLinearDamping () const |
|
virtual void | setLinearDamping (float value) |
|
virtual float | getAngularDamping () const |
|
virtual void | setAngularDamping (float value) |
|
void | setBodyState (const b2Body &body) |
|
float | getDensity () const |
|
virtual void | setDensity (float value) |
|
float | getFriction () const |
|
virtual void | setFriction (float value) |
|
float | getRestitution () const |
|
virtual void | setRestitution (float value) |
|
bool | isSensor () const |
|
virtual void | setSensor (bool value) |
|
b2Filter | getFilterData () const |
|
virtual void | setFilterData (b2Filter value) |
|
virtual Vec2 | getCentroid () const |
|
virtual void | setCentroid (const Vec2 value) |
|
virtual void | setCentroid (float x, float y) |
|
virtual float | getInertia () const |
|
virtual void | setInertia (float value) |
|
virtual float | getMass () const |
|
virtual void | setMass (float value) |
|
virtual void | resetMass () |
|
bool | isRemoved () const |
|
void | markRemoved (bool value) |
|
bool | isDirty () const |
|
void | markDirty (bool value) |
|
virtual b2Body * | getBody () |
|
virtual bool | activatePhysics (b2World &world) |
|
virtual void | deactivatePhysics (b2World &world) |
|
virtual void | update (float delta) |
|
const std::function< void(Obstacle *obstacle)> & | getListener () const |
|
void | setListener (const std::function< void(Obstacle *obstacle)> &listener) |
|
std::string | getName () const |
|
void | setName (std::string value) |
|
std::string | toString () const |
|
Color4 | getDebugColor () const |
|
virtual void | setDebugColor (Color4 color) |
|
scene2::SceneNode * | getDebugScene () const |
|
scene2::WireNode * | getDebugNode () const |
|
virtual void | setDebugScene (const std::shared_ptr< scene2::SceneNode > &node) |
|
bool | hasDebug () |
|