pymasep.common.initializer.initializer_container_interface ========================================================== .. py:module:: pymasep.common.initializer.initializer_container_interface Classes ------- .. autoapisummary:: pymasep.common.initializer.initializer_container_interface.InitializerContainerInterface Module Contents --------------- .. py:class:: InitializerContainerInterface(game, initializer_dict) Bases: :py:obj:`pymasep.common.initializer.initializer_container.InitializerContainer` Initializer used to initialize a Container by the interface An initializer can be executed by the Engine (by default) or processed by the Interface. An initializer is created from a dictionary. The format is the following: - name: name of the initializer used as id - type: type of initialization. ALL: all the objects in obj_init will be created. BUY: the player must choose the objects to buy - obj_init : dictionary containing the name of the objects that could be created/bought as the keys. Values are dictionaries with 3 keys: "cost", the cost of the object, 'template': the template to create the object and 'initializer' used to initialize the object. :param game: the game where the initializer is created :param initializer_dict: the dictionary used to create the initializer .. py:attribute:: init_type initializer by interface .. py:method:: apply(base_object) Apply the initializer. Do nothing since it is an interface initializer. :param base_object: The BaseObject to initialize