fixed a bunch of shit
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user