2023-03-29 07:13:08 +02:00
|
|
|
from domain.entities.entity import Entity
|
|
|
|
from domain.world import World
|
|
|
|
|
|
|
|
|
|
|
|
class Vacuum(Entity):
|
2023-03-29 11:27:59 +02:00
|
|
|
def __init__(self, x: int, y: int):
|
2023-03-30 18:27:51 +02:00
|
|
|
super().__init__(x, y, "VACUUM")
|
2023-03-29 07:13:08 +02:00
|
|
|
self.battery = 100
|
2023-03-30 18:45:52 +02:00
|
|
|
self.cleaning_detergent = 100
|
|
|
|
self.container_filling = 0
|
|
|
|
|
2023-04-10 18:43:16 +02:00
|
|
|
def increase_container_filling(self) -> None:
|
2023-04-14 00:25:35 +02:00
|
|
|
self.container_filling += 25
|
2023-04-10 18:43:16 +02:00
|
|
|
|
2023-04-13 19:04:57 +02:00
|
|
|
def dump_trash(self) -> None:
|
|
|
|
self.container_filling = 0
|
|
|
|
|
2023-04-14 00:25:35 +02:00
|
|
|
def get_container_filling(self):
|
|
|
|
return self.container_filling
|
|
|
|
|
2023-04-13 19:04:57 +02:00
|
|
|
# TODO VACUUM: add more properties
|