2019-04-01 12:48:11 +02:00
|
|
|
from DataModels.Cell import Cell
|
|
|
|
|
2019-04-01 15:45:48 +02:00
|
|
|
|
|
|
|
class House(Cell):
|
|
|
|
def __init__(self, x, y, max_rubbish, yellow=0, green=0, blue=0):
|
|
|
|
Cell.__init__(self, x, y, max_rubbish, yellow, green, blue)
|
|
|
|
|
|
|
|
def return_trash(self, collector):
|
2019-04-02 09:47:00 +02:00
|
|
|
self.container.yellow, self.container.green, self.container.blue = collector.container.add(
|
|
|
|
[self.container.yellow, self.container.green, self.container.blue])
|
2019-04-01 15:45:48 +02:00
|
|
|
self.update_image()
|