| 44 | } |
| 45 | |
| 46 | Test::Test() |
| 47 | { |
| 48 | b2Vec2 gravity; |
| 49 | gravity.Set(0.0f, -10.0f); |
| 50 | m_world = new b2World(gravity); |
| 51 | m_bomb = NULL; |
| 52 | m_textLine = 30; |
| 53 | m_textIncrement = 13; |
| 54 | m_mouseJoint = NULL; |
| 55 | m_pointCount = 0; |
| 56 | |
| 57 | m_destructionListener.test = this; |
| 58 | m_world->SetDestructionListener(&m_destructionListener); |
| 59 | m_world->SetContactListener(this); |
| 60 | m_world->SetDebugDraw(&g_debugDraw); |
| 61 | |
| 62 | m_bombSpawning = false; |
| 63 | |
| 64 | m_stepCount = 0; |
| 65 | |
| 66 | b2BodyDef bodyDef; |
| 67 | m_groundBody = m_world->CreateBody(&bodyDef); |
| 68 | |
| 69 | memset(&m_maxProfile, 0, sizeof(b2Profile)); |
| 70 | memset(&m_totalProfile, 0, sizeof(b2Profile)); |
| 71 | } |
| 72 | |
| 73 | Test::~Test() |
| 74 | { |
nothing calls this directly
no test coverage detected