Projekt_Si/classes/data/posilek.py

13 lines
447 B
Python

import pygame
class Posilek:
def __init__(self,nazwa,typ,cena,alergeny,vegan_vegetarian_meat):
self.nazwa = nazwa
self.typ = typ
self.cena = cena
self.alergeny = alergeny
self.vegan_vegetarian_meat = vegan_vegetarian_meat
def __str__(self):
return f"Posilek: {self.nazwa}, Typ: {self.typ}, Cena: {self.cena}, Alergeny: {self.alergeny}, Vegan/Vegetarian/Meat: {self.vegan_vegetarian_meat}"