pymasep.common.initializer.initializer_charac_interface_shared
Classes
Initializer to choose Characteristic with VALUE_MODE_CHOICE shared among multiple interface. |
Module Contents
- class pymasep.common.initializer.initializer_charac_interface_shared.InitializerCharacInterfaceShared(game, initializer_dict)
Bases:
pymasep.common.initializer.initializer_charac_interface.InitializerCharacInterfaceInitializer to choose Characteristic with VALUE_MODE_CHOICE shared among multiple interface.
- Parameters:
game – the game where the initializer is created
initializer_dict (dict) – the dictionary used to create the initializer
- filter_choice(charac_name, state)
Filter choices when an interface chose a value, all others must remove this choice.
- Parameters:
charac_name (str) – Characteristic name used to filter other characteristics
state – state where the characteristic is stored
- Returns:
the new list of choices filtered removing the value of
- Return type:
List[Tuple[str, str]]