2019-04-01 12:48:11 +02:00
|
|
|
import pygame
|
|
|
|
from DataModels.Cell import Cell
|
|
|
|
|
|
|
|
class Dump( Cell ):
|
|
|
|
def __init__( self, x, y, max_rubbish, dump_type, yellow = 0, green = 0, blue = 0 ):
|
|
|
|
Cell.__init__( self, x, y, max_rubbish, yellow, green, blue, dump_type )
|
2019-04-02 09:47:00 +02:00
|
|
|
self.dump_type = dump_type
|
2019-05-13 09:45:09 +02:00
|
|
|
self.unvisited = True
|
2019-04-01 12:48:11 +02:00
|
|
|
|
2019-04-02 09:47:00 +02:00
|
|
|
def return_trash(self, collector):
|
|
|
|
dump_type = self.dump_type.lower()[5:]
|
|
|
|
self.container.yellow, self.container.green, self.container.blue = collector.container.empty(dump_type,
|
|
|
|
[self.container.yellow, self.container.green, self.container.blue])
|
|
|
|
self.update_image()
|