mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-06-19 19:02:53 +02:00
WIP: collection, entities, objects
This commit is contained in:
@ -5,13 +5,13 @@ from marl_factory_grid.environment import constants as c
|
||||
|
||||
|
||||
class Object:
|
||||
|
||||
"""Generell Objects for Organisation and Maintanance such as Actions etc..."""
|
||||
|
||||
_u_idx = defaultdict(lambda: 0)
|
||||
|
||||
def __bool__(self):
|
||||
return True
|
||||
|
||||
@property
|
||||
def var_has_position(self): # brauchen wir das hier jetzt?
|
||||
try:
|
||||
@ -93,11 +93,10 @@ class Object:
|
||||
|
||||
|
||||
class EnvObject(Object):
|
||||
|
||||
"""Objects that hold Information that are observable, but have no position on the environment grid. Inventories etc..."""
|
||||
|
||||
_u_idx = defaultdict(lambda: 0)
|
||||
|
||||
|
||||
@property
|
||||
def obs_tag(self):
|
||||
try:
|
||||
|
Reference in New Issue
Block a user