ソースを参照

forgotten file: attack brain part

Bastien Sevajol 9 年 前
コミット
f865694d97
共有1 個のファイルを変更した10 個の追加0 個の削除を含む
  1. 10 0
      intelligine/simulation/object/brain/part/attack/AttackBrainPart.py

+ 10 - 0
intelligine/simulation/object/brain/part/attack/AttackBrainPart.py ファイルの表示

@@ -0,0 +1,10 @@
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