added some properties
This commit is contained in:
parent
f7b97c5f74
commit
959ed6bfda
@ -11,4 +11,5 @@ class Cat(Entity):
|
|||||||
self.cooldown = 1000
|
self.cooldown = 1000
|
||||||
self.velocity = 1
|
self.velocity = 1
|
||||||
self.busy = False
|
self.busy = False
|
||||||
|
self.sleeping = False
|
||||||
self.direction = 0
|
self.direction = 0
|
||||||
|
11
domain/entities/garbage.py
Normal file
11
domain/entities/garbage.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
from domain.entities.entity import Entity
|
||||||
|
from domain.world import World
|
||||||
|
|
||||||
|
|
||||||
|
class Garbage(Entity):
|
||||||
|
def __init__(self, x: int, y: int):
|
||||||
|
super().__init__(x, y, "GARBAGE")
|
||||||
|
self.wet = False
|
||||||
|
self.size = 0
|
||||||
|
|
||||||
|
# TODO GARBAGE: add more properties
|
10
domain/entities/plant.py
Normal file
10
domain/entities/plant.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
from domain.entities.entity import Entity
|
||||||
|
from domain.world import World
|
||||||
|
|
||||||
|
|
||||||
|
class Plant(Entity):
|
||||||
|
def __init__(self, x: int, y: int):
|
||||||
|
super().__init__(x, y, "PLANT")
|
||||||
|
self.watered = 100
|
||||||
|
|
||||||
|
# TODO PLANT: add more properties to
|
@ -6,4 +6,7 @@ class Vacuum(Entity):
|
|||||||
def __init__(self, x: int, y: int):
|
def __init__(self, x: int, y: int):
|
||||||
super().__init__(x, y, "VACUUM")
|
super().__init__(x, y, "VACUUM")
|
||||||
self.battery = 100
|
self.battery = 100
|
||||||
# TODO add more properties
|
self.cleaning_detergent = 100
|
||||||
|
self.container_filling = 0
|
||||||
|
|
||||||
|
# TODO VACUUM: add more properties
|
||||||
|
Loading…
Reference in New Issue
Block a user