Public Types | |
enum | { e_count = 7 } |
Public Member Functions | |
void | BeginContact (b2Contact *contact) override |
Called when two fixtures begin to touch. More... | |
void | EndContact (b2Contact *contact) override |
Called when two fixtures cease to touch. More... | |
Sensors () | |
void | Step (Settings &settings) override |
void | UpdateUI () override |
![]() | |
void | CompleteBombSpawn (const b2Vec2 &p) |
void | DrawTitle (const char *string) |
virtual void | JointDestroyed (b2Joint *joint) |
virtual void | Keyboard (int key) |
virtual void | KeyboardUp (int key) |
void | LaunchBomb () |
void | LaunchBomb (const b2Vec2 &position, const b2Vec2 &velocity) |
virtual void | MouseDown (const b2Vec2 &p) |
virtual void | MouseMove (const b2Vec2 &p) |
virtual void | MouseUp (const b2Vec2 &p) |
virtual void | PostSolve (b2Contact *contact, const b2ContactImpulse *impulse) override |
virtual void | PreSolve (b2Contact *contact, const b2Manifold *oldManifold) override |
void | ShiftMouseDown (const b2Vec2 &p) |
void | ShiftOrigin (const b2Vec2 &newOrigin) |
void | SpawnBomb (const b2Vec2 &worldPt) |
Test () | |
virtual | ~Test () |
![]() | |
virtual | ~b2ContactListener () |
Static Public Member Functions | |
static Test * | Create () |
Public Attributes | |
b2Body * | m_bodies [e_count] |
float | m_force |
b2Fixture * | m_sensor |
bool | m_touching [e_count] |
Additional Inherited Members | |
![]() | |
b2Body * | m_bomb |
bool | m_bombSpawning |
b2Vec2 | m_bombSpawnPoint |
DestructionListener | m_destructionListener |
b2Body * | m_groundBody |
b2Profile | m_maxProfile |
b2MouseJoint * | m_mouseJoint |
b2Vec2 | m_mouseWorld |
int32 | m_pointCount |
ContactPoint | m_points [k_maxContactPoints] |
int32 | m_stepCount |
int32 | m_textIncrement |
int32 | m_textLine |
b2Profile | m_totalProfile |
b2World * | m_world |
b2AABB | m_worldAABB |
Definition at line 27 of file sensor.cpp.
anonymous enum |
Enumerator | |
---|---|
e_count |
Definition at line 31 of file sensor.cpp.
|
inline |
Definition at line 36 of file sensor.cpp.
Called when two fixtures begin to touch.
Reimplemented from Test.
Definition at line 91 of file sensor.cpp.
|
inlinestatic |
Definition at line 184 of file sensor.cpp.
Called when two fixtures cease to touch.
Reimplemented from Test.
Definition at line 116 of file sensor.cpp.
Reimplemented from Test.
Definition at line 151 of file sensor.cpp.
|
inlineoverridevirtual |
Reimplemented from Test.
Definition at line 140 of file sensor.cpp.
Definition at line 190 of file sensor.cpp.
float Sensors::m_force |
Definition at line 191 of file sensor.cpp.
b2Fixture* Sensors::m_sensor |
Definition at line 189 of file sensor.cpp.
bool Sensors::m_touching[e_count] |
Definition at line 192 of file sensor.cpp.