AttackBrainPart.can_attack()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 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