reframe check_pad_movement logics and inherith the base Paddle class

This commit is contained in:
andrea
2026-03-19 18:26:27 +01:00
parent 68dfce8b12
commit eac8c59d96
5 changed files with 55 additions and 22 deletions

View File

@@ -60,6 +60,13 @@ void Engine::run() {
}
}
bool Engine::control_players() {
bool need_refresh= false;
need_refresh |= _p1.check_pad_movement();
need_refresh |= _p2.check_pad_movement();
return need_refresh;
}
uint8_t Engine::ball_movement_delay() {
return _ball_mv_delay;
}