Przeglądaj źródła

rename XYZ Simulation

Bastien Sevajol 7 lat temu
rodzic
commit
2a6bc8bf95
2 zmienionych plików z 4 dodań i 4 usunięć
  1. 2 2
      sandbox/engulf/run.py
  2. 2 2
      synergine2/xyz.py

+ 2 - 2
sandbox/engulf/run.py Wyświetl plik

@@ -36,12 +36,12 @@ from sandbox.engulf.const import COLLECTION_GRASS
36 36
 from synergine2.core import Core
37 37
 from synergine2.cycle import CycleManager
38 38
 from synergine2.terminals import TerminalManager, Terminal, TerminalPackage
39
-from synergine2.xyz import Simulation
39
+from synergine2.xyz import XYZSimulation
40 40
 from sandbox.engulf.simulation import EngulfSubjects
41 41
 from synergine2.xyz_utils import get_around_positions_of, get_distance_between_points
42 42
 
43 43
 
44
-class Engulf(Simulation):
44
+class Engulf(XYZSimulation):
45 45
     behaviours_classes = [
46 46
         GrassSpawnBehaviour,
47 47
     ]

+ 2 - 2
synergine2/xyz.py Wyświetl plik

@@ -133,7 +133,7 @@ class ProximityMixin(object):
133 133
     def get_for_position(
134 134
             self,
135 135
             position,
136
-            simulation: 'Simulation',
136
+            simulation: 'XYZSimulation',
137 137
             exclude_subject: Subject=None,
138 138
     ):
139 139
         subjects = []
@@ -205,7 +205,7 @@ class XYZSubjects(Subjects):
205 205
         self.xyz[p_object.position] = p_object
206 206
 
207 207
 
208
-class Simulation(BaseSimulation):
208
+class XYZSimulation(BaseSimulation):
209 209
     accepted_subject_class = XYZSubjects
210 210
 
211 211