self.machine.logic_blocks

class mpf.core.logic_blocks.LogicBlocks(machine: mpf.core.machine.MachineController)

Bases: mpf.core.mpf_controller.MpfController

LogicBlock Manager.

Accessing the logic_blocks in code

There is only one instance of the logic_blocks in MPF, and it's accessible via self.machine.logic_blocks.

Methods & Attributes

The logic_blocks has the following methods & attributes available. Note that methods & attributes inherited from base classes are not included here.

player_turn_start(player, **kwargs)

Create blocks for current player.

Parameters:player -- Player object
player_turn_stop(player: mpf.core.player.Player, **kwargs)

Remove blocks from current player.

Parameters:player -- Player pnkect