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

Public Member Functions

void Keyboard (int key) override
 
void KeyboardUp (int key) override
 
 Pinball ()
 
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)
 
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_ball
 
bool m_button
 
b2RevoluteJointm_leftJoint
 
b2RevoluteJointm_rightJoint
 

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

This tests bullet collision and provides an example of a gameplay scenario. This also uses a loop shape.

Definition at line 27 of file pinball.cpp.

Constructor & Destructor Documentation

◆ Pinball()

Pinball::Pinball ( )
inline

Definition at line 30 of file pinball.cpp.

Member Function Documentation

◆ Create()

static Test* Pinball::Create ( )
inlinestatic

Definition at line 159 of file pinball.cpp.

◆ Keyboard()

void Pinball::Keyboard ( int  key)
inlineoverridevirtual

Reimplemented from Test.

Definition at line 139 of file pinball.cpp.

◆ KeyboardUp()

void Pinball::KeyboardUp ( int  key)
inlineoverridevirtual

Reimplemented from Test.

Definition at line 149 of file pinball.cpp.

◆ Step()

void Pinball::Step ( Settings settings)
inlineoverridevirtual

Reimplemented from Test.

Definition at line 119 of file pinball.cpp.

Member Data Documentation

◆ m_ball

b2Body* Pinball::m_ball

Definition at line 166 of file pinball.cpp.

◆ m_button

bool Pinball::m_button

Definition at line 167 of file pinball.cpp.

◆ m_leftJoint

b2RevoluteJoint* Pinball::m_leftJoint

Definition at line 164 of file pinball.cpp.

◆ m_rightJoint

b2RevoluteJoint* Pinball::m_rightJoint

Definition at line 165 of file pinball.cpp.


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


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