simulation.py 488B

1234567891011121314151617
  1. # coding: utf-8
  2. import typing
  3. from synergine2.simulation import Simulation as BaseSimulation
  4. from synergine2_xyz.xyz import XYZSubject
  5. from synergine2_xyz.subjects import XYZSubjects
  6. class XYZSimulation(BaseSimulation):
  7. accepted_subject_class = XYZSubjects
  8. def is_possible_subject_position(self, subject: XYZSubject, position: tuple) -> bool:
  9. return self.is_possible_position(position)
  10. def is_possible_position(self, position: tuple) -> bool:
  11. return True