fixed a bunch of shit
This commit is contained in:
@ -2,6 +2,7 @@ import os
|
||||
import pygame
|
||||
|
||||
class BoardField(pygame.sprite.Sprite):
|
||||
__fieldID:str
|
||||
__name:str
|
||||
__side:str
|
||||
__type:str
|
||||
@ -12,13 +13,14 @@ class BoardField(pygame.sprite.Sprite):
|
||||
image:pygame.image
|
||||
rect:pygame.rect
|
||||
|
||||
def __init__(self, name:str, side:str, type:str, pos:pygame.Vector2, imagePath:str):
|
||||
def __init__(self, name:str, side:str, type:str, pos:pygame.Vector2, imagePath:str, fid:str):
|
||||
pygame.sprite.Sprite.__init__(self)
|
||||
self.__name = name
|
||||
self.__side = side
|
||||
self.__type = type
|
||||
self.__pos = pos
|
||||
self.__holdsCard = None
|
||||
self.__fieldID = fid
|
||||
|
||||
# Überprüfen des Dateipfads
|
||||
if not os.path.exists(imagePath):
|
||||
@ -78,4 +80,7 @@ class BoardField(pygame.sprite.Sprite):
|
||||
return self.__color
|
||||
|
||||
def setCardHolding(self, card):
|
||||
self.__holdsCard = card
|
||||
self.__holdsCard = card
|
||||
|
||||
def getFieldID(self) -> str:
|
||||
return self.__fieldID
|
Reference in New Issue
Block a user