core.commands.dummy_command module

Define a useless command to serve as place holder.

class DummyCommand(line: list[str], dat_idx: int, **kwargs: str)

Bases: Command

Dummy class.

__init__(line: list[str], dat_idx: int, **kwargs: str) None

Instantiate the dummy command.

_abc_impl = <_abc._abc_data object>
apply(instructions: list[Instruction], **kwargs: float) list[Instruction]

Do nothing.

concerns_one_of(dat_indexes: list[int]) bool

Tell if self concerns an element, which dat_idx is given.

Internally, we convert the self.influenced from a set to a list object and check intersections with dat_indexes.

Parameters:

dat_indexes (list[int]) – Indexes in the .dat file of the sub-list of elements under creation.

is_implemented: bool = False
set_influenced_elements(instructions: list[Instruction], **kwargs: float) None

Determine the index of the elements concerned by apply().