Browse Source

move constants

Bastien Sevajol 9 years ago
parent
commit
9c5b2953cd

+ 0 - 2
intelligine/cst.py View File

@@ -3,8 +3,6 @@ from synergine.lib.eint import IncrementedNamedInt
3 3
 ALIVE = IncrementedNamedInt.get('intelligine.alive')
4 4
 WALKER = IncrementedNamedInt.get('intelligine.walker')
5 5
 IMPENETRABLE = IncrementedNamedInt.get('intelligine.impenetrable')
6
-PREVIOUS_DIRECTION = IncrementedNamedInt.get('intelligine.previous_direction')
7
-BLOCKED_SINCE = IncrementedNamedInt.get('intelligine.blocked_since')
8 6
 ATTACKABLE = IncrementedNamedInt.get('intelligine.attackable')
9 7
 ATTACKER = IncrementedNamedInt.get('intelligine.attacker')
10 8
 COLONY = IncrementedNamedInt.get('intelligine.colony')

+ 1 - 1
intelligine/display/pygame/visualisation.py View File

@@ -10,7 +10,7 @@ from intelligine.sandbox.colored.GreenAnt import GreenAnt
10 10
 from intelligine.synergy.object.Rock import Rock
11 11
 from intelligine.synergy.object.ant.Egg import Egg
12 12
 from os import getcwd
13
-from intelligine.cst import PREVIOUS_DIRECTION
13
+from xyzworld.cst import PREVIOUS_DIRECTION
14 14
 
15 15
 # TODO: Analyser les procedes ici pour proposer des outils dans le framework
16 16
 

+ 1 - 1
intelligine/simulation/object/brain/part/MoveBrainPart.py View File

@@ -2,7 +2,7 @@ from intelligine.core.exceptions import DirectionException
2 2
 from intelligine.simulation.object.brain.part.BrainPart import BrainPart
3 3
 from intelligine.synergy.event.move.direction import directions_same_level, directions_slighty
4 4
 from random import randint, choice, randrange
5
-from intelligine.cst import BLOCKED_SINCE, PREVIOUS_DIRECTION
5
+from xyzworld.cst import BLOCKED_SINCE, PREVIOUS_DIRECTION
6 6
 
7 7
 
8 8
 class MoveBrainPart(BrainPart):

+ 2 - 1
intelligine/synergy/event/move/MoveAction.py View File

@@ -2,7 +2,8 @@ from synergine.synergy.event.Action import Action
2 2
 from intelligine.synergy.event.move.MoveEvent import MoveEvent
3 3
 from synergine.synergy.event.exception.ActionAborted import ActionAborted
4 4
 from xyzworld.cst import POSITION
5
-from intelligine.cst import BLOCKED_SINCE, BRAIN_PART_MOVE, BRAIN_SCHEMA
5
+from intelligine.cst import BRAIN_PART_MOVE, BRAIN_SCHEMA
6
+from xyzworld.cst import BLOCKED_SINCE
6 7
 from intelligine.synergy.event.move.direction import get_position_with_direction_decal
7 8
 
8 9