SI_InteligentnyWozekWidlowy/data/Item.py
Aleksander Szamałek 522b29269d engine improvements
2022-05-22 16:27:36 +02:00

16 lines
389 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):
self.id = next(self.id_counter)
self.real_type = item_type
self.guessed_type = None
def __repr__(self) -> str:
return "|real: {} -- guessed: {}| \n".format(self.real_type, self.guessed_type)