2022-04-23 19:14:23 +02:00
|
|
|
import pygame as pg
|
2022-05-10 01:05:34 +02:00
|
|
|
from enum import Enum
|
2022-03-24 17:30:28 +01:00
|
|
|
|
2022-05-10 01:05:34 +02:00
|
|
|
from map.tile import Tile
|
|
|
|
|
|
|
|
class Waste_Type(Enum):
|
|
|
|
BIO = 0
|
|
|
|
GLASS = 1
|
|
|
|
PLASTIC = 2
|
|
|
|
PAPER = 3
|
|
|
|
MIX = 4
|
2022-03-24 17:33:54 +01:00
|
|
|
|
2022-05-10 01:05:34 +02:00
|
|
|
def __int__(self):
|
|
|
|
return self.value
|
|
|
|
class Trashbin(Tile):
|
|
|
|
def __init__(self, img, x, y, width, height, waste_type: Waste_Type):
|
|
|
|
super().__init__(img, x, y, width, height)
|
|
|
|
|
|
|
|
self.waste_type = waste_type
|
|
|
|
self.days_after_pickup = 0
|
|
|
|
self.max_capacity = 100
|
|
|
|
self.used_capacity = 0
|
|
|
|
self.access = True
|