crafting done ?

This commit is contained in:
2023-01-13 20:07:21 +01:00
parent 7539863ace
commit 4f1044b87e
7 changed files with 554 additions and 52 deletions
+9 -2
View File
@@ -38,7 +38,7 @@ class BaseAgent:
if idx is None:
idx = 0
if multi_action_mode is None:
multi_action_mode = False
@@ -64,6 +64,7 @@ class BaseAgent:
self._registered_inventory = False
self._registered_endogenous = False
self._registered_components = False
self._setup = False # agent setup not completed
self._noop_action_dict = dict()
# Special flag to allow logic for multi-action-mode agents
@@ -78,7 +79,13 @@ class BaseAgent:
def idx(self):
"""Index used to identify this agent. Must be unique within the environment."""
return self._idx
@property
def is_setup(self):
return self._setup
def set_setup(self, set):
self._setup=set
def register_inventory(self, resources):
"""Used during environment construction to populate inventory/escrow fields."""
if self._registered_inventory: