Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
PolygonShapes Class Reference
Inheritance diagram for PolygonShapes:
Inheritance graph
[legend]

Public Types

enum  { e_maxBodies = 256 }
 

Public Member Functions

void Create (int32 index)
 
void DestroyBody ()
 
void Keyboard (int key) override
 
 PolygonShapes ()
 
void Step (Settings &settings) override
 
- Public Member Functions inherited from Test
virtual void BeginContact (b2Contact *contact) override
 Called when two fixtures begin to touch. More...
 
void CompleteBombSpawn (const b2Vec2 &p)
 
void DrawTitle (const char *string)
 
virtual void EndContact (b2Contact *contact) override
 Called when two fixtures cease to touch. More...
 
virtual void JointDestroyed (b2Joint *joint)
 
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 void UpdateUI ()
 
virtual ~Test ()
 
- Public Member Functions inherited from b2ContactListener
virtual ~b2ContactListener ()
 

Static Public Member Functions

static TestCreate ()
 

Public Attributes

b2Bodym_bodies [e_maxBodies]
 
int32 m_bodyIndex
 
b2CircleShape m_circle
 
b2PolygonShape m_polygons [4]
 

Additional Inherited Members

- Protected Attributes inherited from Test
b2Bodym_bomb
 
bool m_bombSpawning
 
b2Vec2 m_bombSpawnPoint
 
DestructionListener m_destructionListener
 
b2Bodym_groundBody
 
b2Profile m_maxProfile
 
b2MouseJointm_mouseJoint
 
b2Vec2 m_mouseWorld
 
int32 m_pointCount
 
ContactPoint m_points [k_maxContactPoints]
 
int32 m_stepCount
 
int32 m_textIncrement
 
int32 m_textLine
 
b2Profile m_totalProfile
 
b2Worldm_world
 
b2AABB m_worldAABB
 

Detailed Description

Definition at line 76 of file polygon_shapes.cpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
e_maxBodies 

Definition at line 80 of file polygon_shapes.cpp.

Constructor & Destructor Documentation

◆ PolygonShapes()

PolygonShapes::PolygonShapes ( )
inline

Definition at line 85 of file polygon_shapes.cpp.

Member Function Documentation

◆ Create() [1/2]

void PolygonShapes::Create ( int32  index)
inline

Definition at line 143 of file polygon_shapes.cpp.

◆ Create() [2/2]

static Test* PolygonShapes::Create ( )
inlinestatic

Definition at line 254 of file polygon_shapes.cpp.

◆ DestroyBody()

void PolygonShapes::DestroyBody ( )
inline

Definition at line 186 of file polygon_shapes.cpp.

◆ Keyboard()

void PolygonShapes::Keyboard ( int  key)
inlineoverridevirtual

Reimplemented from Test.

Definition at line 199 of file polygon_shapes.cpp.

◆ Step()

void PolygonShapes::Step ( Settings settings)
inlineoverridevirtual

Reimplemented from Test.

Definition at line 228 of file polygon_shapes.cpp.

Member Data Documentation

◆ m_bodies

b2Body* PolygonShapes::m_bodies[e_maxBodies]

Definition at line 260 of file polygon_shapes.cpp.

◆ m_bodyIndex

int32 PolygonShapes::m_bodyIndex

Definition at line 259 of file polygon_shapes.cpp.

◆ m_circle

b2CircleShape PolygonShapes::m_circle

Definition at line 262 of file polygon_shapes.cpp.

◆ m_polygons

b2PolygonShape PolygonShapes::m_polygons[4]

Definition at line 261 of file polygon_shapes.cpp.


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


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:23