| 86 | } |
| 87 | |
| 88 | void WormPlugin::active(YAGfx& gfx) |
| 89 | { |
| 90 | gfx.fillScreen(ColorDef::BLACK); |
| 91 | |
| 92 | /* Force update */ |
| 93 | m_timer.start(0U); |
| 94 | |
| 95 | /* If in explosion phase, draw the last worm, meal and explosion state. */ |
| 96 | if (true == m_isExplosion) |
| 97 | { |
| 98 | drawAllWorms(gfx); |
| 99 | drawMeal(gfx); |
| 100 | drawExplosion(gfx); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | void WormPlugin::inactive() |
| 105 | { |
nothing calls this directly
no test coverage detected