MoveAction.set_move_event()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
1
from intelligine.synergy.event.move.MoveAction import MoveAction as BaseMoveAction
2
from intelligine.tests.src.event.MoveEvent import MoveEvent
3
4
5
class MoveAction(BaseMoveAction):
6
7
    @classmethod
8
    def set_move_event(cls, force_direction_function, event=MoveEvent):
9
        event.force_direction = force_direction_function
10
        cls._listen = event