Machine_learning_2023/domain/entities/vacuum.py

23 lines
605 B
Python
Raw Normal View History

2023-05-18 23:18:07 +02:00
from domain.entities.entity import Entity
from domain.world import World
class Vacuum(Entity):
def __init__(self, x: int, y: int):
super().__init__(x, y, "VACUUM")
self.direction = (1, 0)
self.battery = 100
self.cleaning_detergent = 100
self.container_filling = 0
def increase_container_filling(self) -> None:
2023-05-26 01:17:33 +02:00
self.container_filling += 5
2023-05-18 23:18:07 +02:00
def dump_trash(self) -> None:
self.container_filling = 0
def get_container_filling(self):
return self.container_filling
# TODO VACUUM: add more properties