fixed a bunch of shit

This commit is contained in:
2023-12-17 22:51:25 +01:00
parent 0b447f9505
commit 2055786d4a
15 changed files with 120 additions and 25 deletions

View File

@ -1,6 +1,7 @@
import pygame
class Player:
__id:int
__hp:int
__name:str
__handCards:pygame.Sprite.Group
@ -9,6 +10,12 @@ class Player:
self.__hp = hp
self.__name = name
def setID(self, id:int):
self.__id = id
def getID(self) -> int:
return self.__id
def getName(self) -> str:
return self.__name
@ -21,7 +28,8 @@ class Player:
def getHand(self) -> pygame.Sprite.Group:
return self.__handCards
def getAddToHand(self, card) -> pygame.Sprite.Group:
def AddToHand(self, card) -> pygame.Sprite.Group:
self.__handCards.add(card)
return self.__handCards
def removeFromHand(self, pos:int) -> pygame.Sprite.Group: