Bug   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
b 0
f 0
dl 0
loc 11
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __init__() 0 4 1
A die() 0 4 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