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

Public Member Functions

 Car ()
 
void Keyboard (int key) override
 
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_car
 
float m_speed
 
b2WheelJointm_spring1
 
b2WheelJointm_spring2
 
b2Bodym_wheel1
 
b2Bodym_wheel2
 

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 26 of file car.cpp.

Constructor & Destructor Documentation

◆ Car()

Car::Car ( )
inline

Definition at line 29 of file car.cpp.

Member Function Documentation

◆ Create()

static Test* Car::Create ( )
inlinestatic

Definition at line 270 of file car.cpp.

◆ Keyboard()

void Car::Keyboard ( int  key)
inlineoverridevirtual

Reimplemented from Test.

Definition at line 243 of file car.cpp.

◆ Step()

void Car::Step ( Settings settings)
inlineoverridevirtual

Reimplemented from Test.

Definition at line 261 of file car.cpp.

Member Data Documentation

◆ m_car

b2Body* Car::m_car

Definition at line 275 of file car.cpp.

◆ m_speed

float Car::m_speed

Definition at line 279 of file car.cpp.

◆ m_spring1

b2WheelJoint* Car::m_spring1

Definition at line 280 of file car.cpp.

◆ m_spring2

b2WheelJoint* Car::m_spring2

Definition at line 281 of file car.cpp.

◆ m_wheel1

b2Body* Car::m_wheel1

Definition at line 276 of file car.cpp.

◆ m_wheel2

b2Body* Car::m_wheel2

Definition at line 277 of file car.cpp.


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


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