mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-12-11 18:10:38 +01:00
WIP: collection, entities, objects
This commit is contained in:
@@ -16,10 +16,9 @@ class Entity(Object, abc.ABC):
|
||||
def state(self):
|
||||
return self._status or ActionResult(entity=self, identifier=c.NOOP, validity=c.VALID, reward=0)
|
||||
|
||||
# @property
|
||||
# def var_has_position(self):
|
||||
# return self.pos != c.VALUE_NO_POS
|
||||
var_has_position: bool = True
|
||||
@property
|
||||
def var_has_position(self):
|
||||
return self.pos != c.VALUE_NO_POS
|
||||
|
||||
@property
|
||||
def var_is_blocking_light(self):
|
||||
@@ -28,7 +27,6 @@ class Entity(Object, abc.ABC):
|
||||
except AttributeError:
|
||||
return False
|
||||
|
||||
# var_is_blocking_light: bool = True
|
||||
|
||||
@property
|
||||
def var_can_move(self):
|
||||
@@ -51,7 +49,6 @@ class Entity(Object, abc.ABC):
|
||||
except AttributeError:
|
||||
return False
|
||||
|
||||
# var_can_collide: bool = True
|
||||
|
||||
@property
|
||||
def x(self):
|
||||
|
||||
Reference in New Issue
Block a user