Trashmaster/game_objects/trashbin.py
aliaksei-kudravets f258750c1c fix path
2022-05-13 12:47:08 +02:00

24 lines
700 B
Python

import pygame as pg
from enum import Enum
from random import randrange
from map.tile import Tile
class Trashbin(Tile):
def __init__(self, img, x, y, width, height, waste_type):
super().__init__(img, x, y, width, height)
# dis_dump dis_trash mass space trash_mass trash_space
self.x = x
self.y = y
self.season = randrange(4)
self.trash_type = randrange(5)
self.mass = randrange(5)
self.space = randrange(5)
self.trash_mass = randrange(5)
def get_coords(self):
return (self.x, self.y)
def get_attributes(self):
return (self.season, self.trash_type, self.mass, self.space, self.trash_mass)