SI_InteligentnyWozekWidlowy/data/Item.py
Aleksander Szamałek b37847b304 item display row
2022-06-09 22:38:02 +02:00

17 lines
423 B
Python

from itertools import count
from data.enum.ItemType import ItemType
class Item:
id_counter = count(start=0)
def __init__(self, item_type: ItemType, image):
self.id = next(self.id_counter)
self.real_type = item_type
self.image = image
self.guessed_type = None
def __repr__(self) -> str:
return "|real: {} -- guessed: {}| \n".format(self.real_type, self.guessed_type)