pymasep.common.initializer.initializer_fixed ============================================ .. py:module:: pymasep.common.initializer.initializer_fixed Classes ------- .. autoapisummary:: pymasep.common.initializer.initializer_fixed.InitializerFixed Module Contents --------------- .. py:class:: InitializerFixed(game, initializer_dict) Bases: :py:obj:`pymasep.common.initializer.initializer.Initializer` Initialize Characteristic with fixed value 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: fixed value used to initialize the characteristic :param game: the game where the initializer is created :param initializer_dict: the dictionary used to create the initializer .. py:attribute:: fixed_value value used to initialize the characteristic .. py:method:: apply(base_object) Apply the initializer. :param base_object: The characteristic to initialize