pymasep.common.initializer.initializer_charac_interface ======================================================= .. py:module:: pymasep.common.initializer.initializer_charac_interface Classes ------- .. autoapisummary:: pymasep.common.initializer.initializer_charac_interface.InitializerCharacInterface Module Contents --------------- .. py:class:: InitializerCharacInterface(game, initializer_dict) Bases: :py:obj:`pymasep.common.initializer.initializer.Initializer` Initializer used to initialize a Characteristic from the interface. An initializer is created from a dictionary. The format is the following: - name: name of the initializer used as id - value_type: for Characteristic, the type of the value (as string) - subclass_initializer: name of sub initializer used to initialize sub BaseObject. These initializers must already exist in the game - value_mode: mode of the interface initialization : VALUE_MODE_* - param: for VALUE_MODE_DICE, string representing the dices and VALUE_MODE_CHOICE, list of tuples (description, value) :param game: the game where the initializer is created :param initializer_dict: the dictionary used to create the initializer .. py:attribute:: VALUE_MODE_VALUE :value: 'value' Value is chosen in the interface .. py:attribute:: VALUE_MODE_DICE :value: 'dice' value is chosen by a dice interface .. py:attribute:: VALUE_MODE_CHOICE :value: 'choice' value is chosen in the interface among some choices .. py:attribute:: value_mode Way of choosing the initializer value. see VALUE_MODE_* .. py:attribute:: param parameter depending of initializer type .. py:attribute:: init_type initializer by interface