pymasep.common.template ======================= .. py:module:: pymasep.common.template Submodules ---------- .. toctree:: :maxdepth: 1 /autoapi/pymasep/common/template/system_templates/index /autoapi/pymasep/common/template/template/index Attributes ---------- .. autoapisummary:: pymasep.common.template.SYSTEM_TEMPLATES Classes ------- .. autoapisummary:: pymasep.common.template.Template Package Contents ---------------- .. py:class:: Template(game, template_dict) Template for a base object. A template is created from a dictionary name: name of the template name_base_object: name given to the created object if it is created from the template. If not given, name_base_object is set to name nature: the nature given the created object. May be None. created_class: the type of the BaseObject to create. Must be set value_type: for characteristics, the type of the value. default_value: default value for characteristic at the creation. May be none. subclass_template : name of sub template used to create sub BaseObject. These templates must already exist in the game controller: name of the class (full package name) to create a controller of an agent subclass_inheritance: list of template name used to inherit the subclass_templates :param game: The game where the template is created. :param template_dict: The dictionary used to create the template .. py:attribute:: name .. py:attribute:: name_base_object .. py:attribute:: nature .. py:attribute:: created_class .. py:attribute:: value_type .. py:attribute:: default_value .. py:attribute:: subclass_templates :value: [] .. py:attribute:: game .. py:attribute:: controller .. py:data:: SYSTEM_TEMPLATES