2019-03-19 18:29:18 +01:00
|
|
|
import pygame
|
|
|
|
import sys
|
|
|
|
from sprites.cell import Cell
|
|
|
|
|
2019-03-21 01:25:19 +01:00
|
|
|
|
2019-03-19 18:29:18 +01:00
|
|
|
class Landfill(Cell):
|
2019-03-21 01:25:19 +01:00
|
|
|
def __init__(self, x, y, type):
|
|
|
|
Cell.__init__(self, x, y)
|
|
|
|
types = ["plastic", "glass", "metal"]
|
|
|
|
self.type = types[type]
|
2019-03-25 17:41:24 +01:00
|
|
|
self.image = pygame.image.load("images/landfill_%s.png" % (self.type))
|
2019-03-26 23:13:34 +01:00
|
|
|
|
|
|
|
def get_coordinates(self):
|
|
|
|
return self.x, self.y
|
|
|
|
|
|
|
|
def get_type(self):
|
|
|
|
return self.type
|