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

@@ -26,6 +26,7 @@ class Engine {
: _p1(p_one), _p2(p_two), _ball(ball), _ball_mv_delay(ball_mv_delay) {}
void run();
bool control_players();
uint8_t ball_movement_delay();
EngineEvents get_event();
void restart_ball();