AttackBrainPart   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
dl 0
loc 7
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A can_attack() 0 5 1
1
from intelligine.simulation.object.brain.part.BrainPart import BrainPart
2
3
4
class AttackBrainPart(BrainPart):
5
6
    @classmethod
7
    def can_attack(cls, context, object_id, concerned_object_id):
8
        # Pour le moment on ne passe ici que si c'est un object ATTACKABLE d'une colonie differente. On attaque
9
        # toujours. On codera dans ce brain part la decision d'attaquer.
10
        return True