소스 검색

Rename Rockes in Environment

Bastien Sevajol 9 년 전
부모
커밋
6c35e3d240
3개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      intelligine/display/pygame/visualisation.py
  2. 1 1
      intelligine/synergy/Environment.py
  3. 1 1
      intelligine/synergy/EnvironmentConfiguration.py

+ 2 - 2
intelligine/display/pygame/visualisation.py 파일 보기

@@ -1,6 +1,6 @@
1 1
 import pygame
2 2
 from intelligine.synergy.Colony import Colony
3
-from intelligine.synergy.Rocks import Rocks
3
+from intelligine.synergy.Environment import Environment
4 4
 from intelligine.synergy.object.StockedFood import StockedFood
5 5
 from synergine.synergy.Simulation import Simulation
6 6
 from synergine_xyz.display.PygameImageRotate import PygameImageRotate
@@ -164,7 +164,7 @@ map_config = {
164 164
     },
165 165
     'collection': {
166 166
         'ant': Colony,
167
-        'env': Rocks  # TODO: Nom plus generique
167
+        'env': Environment
168 168
     },
169 169
     'object': {
170 170
         'ant': Ant,

intelligine/synergy/Rocks.py → intelligine/synergy/Environment.py 파일 보기

@@ -2,7 +2,7 @@ from intelligine.synergy.event.smell.SmellAction import SmellAction
2 2
 from synergine.synergy.collection.SynergyCollection import SynergyCollection
3 3
 
4 4
 
5
-class Rocks(SynergyCollection):
5
+class Environment(SynergyCollection):
6 6
     """
7 7
     TODO: Rename in Environment
8 8
     """

intelligine/synergy/RocksConfiguration.py → intelligine/synergy/EnvironmentConfiguration.py 파일 보기

@@ -2,7 +2,7 @@ from synergine.synergy.collection.Configuration import Configuration
2 2
 from intelligine.synergy.object.Rock import Rock
3 3
 
4 4
 
5
-class RocksConfiguration(Configuration):
5
+class EnvironmentConfiguration(Configuration):
6 6
 
7 7
     def get_start_objects(self, collection, context):
8 8