game: rename: paddle to Player

This commit is contained in:
starnakin 2024-01-16 23:27:02 +01:00
parent 6f45baa6b3
commit 516ccdc297
2 changed files with 13 additions and 8 deletions

View File

@ -1,8 +0,0 @@
class Player:
def __init__(self, user_id, pos, nb_goal) -> None:
self.user_id = user_id
self.pos = pos
self.nb_goal = nb_goal

13
games/objects/Player.py Normal file
View File

@ -0,0 +1,13 @@
class Player:
def __init__(self, user_id, pos, nb_goal, rail_start_x, rail_start_y, rail_stop_x, rail_stop_y) -> None:
self.user_id = user_id
self.pos = pos
self.nb_goal = nb_goal
self.rail_start_x = rail_start_x
self.rail_start_y = rail_start_y
self.rail_stop_x = rail_stop_x
self.rail_stop_y = rail_stop_y