Bug.__init__()   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.object.BaseBug import BaseBug
2
from intelligine.cst import WALKER, COL_WALKER
3
4
5
class Bug(BaseBug):
6
7
    def __init__(self, collection, context):
8
        super().__init__(collection, context)
9
        context.metas.states.add(self.get_id(), WALKER)
10
        context.metas.collections.add(self.get_id(), COL_WALKER)
11
12
    def die(self):
13
        super().die()
14
        self._remove_state(WALKER)
15
        self._remove_col(COL_WALKER)
16