Added the ability for verbs to be a dict, for future use by an AI.

This commit is contained in:
cheezedoodle2
2023-04-03 23:49:36 -07:00
parent 0f10f22345
commit ff86e4a7c2
4 changed files with 46 additions and 9 deletions
+13 -2
View File
@@ -16,12 +16,23 @@ class Simulation(ABC):
pass
@abstractmethod
def get_uses(self):
"""
Return the uses of the simulated object. These are verb strings which are passed to the `use()` method.
Returns:
tuple: A dict of key-value pairs, where the keys are strings of
verbs to be passed to `use`, and the values are strings explaining
what the verb does in English.
"""
@abstractmethod
def use(self, *args, **kwargs):
"""
Use the simulated object.
Args:
args (tuple): A tuple of arguments.
kwargs (dict): A dictionary of key-value pairs of arguments.
args (tuple): A tuple of verbs to be used on the object.
kwargs (dict): A dictionary of key-value pairs of arguments to the verb(s).
Returns:
True if the action succeeded, False if the action did not succeed and the object needs to be expired.
"""
pass