Browse Source

move constants

Bastien Sevajol 9 years ago
parent
commit
9c5b2953cd

+ 0 - 2
intelligine/cst.py View File

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

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

10
 from intelligine.synergy.object.Rock import Rock
10
 from intelligine.synergy.object.Rock import Rock
11
 from intelligine.synergy.object.ant.Egg import Egg
11
 from intelligine.synergy.object.ant.Egg import Egg
12
 from os import getcwd
12
 from os import getcwd
13
-from intelligine.cst import PREVIOUS_DIRECTION
13
+from xyzworld.cst import PREVIOUS_DIRECTION
14
 
14
 
15
 # TODO: Analyser les procedes ici pour proposer des outils dans le framework
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
 from intelligine.simulation.object.brain.part.BrainPart import BrainPart
2
 from intelligine.simulation.object.brain.part.BrainPart import BrainPart
3
 from intelligine.synergy.event.move.direction import directions_same_level, directions_slighty
3
 from intelligine.synergy.event.move.direction import directions_same_level, directions_slighty
4
 from random import randint, choice, randrange
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
 class MoveBrainPart(BrainPart):
8
 class MoveBrainPart(BrainPart):

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

2
 from intelligine.synergy.event.move.MoveEvent import MoveEvent
2
 from intelligine.synergy.event.move.MoveEvent import MoveEvent
3
 from synergine.synergy.event.exception.ActionAborted import ActionAborted
3
 from synergine.synergy.event.exception.ActionAborted import ActionAborted
4
 from xyzworld.cst import POSITION
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
 from intelligine.synergy.event.move.direction import get_position_with_direction_decal
7
 from intelligine.synergy.event.move.direction import get_position_with_direction_decal
7
 
8
 
8
 
9