Colony.py 824B

123456789101112131415161718
  1. from synergine.synergy.collection.SynergyCollection import SynergyCollection
  2. from intelligine.synergy.event.move.MoveAction import MoveAction
  3. from intelligine.synergy.event.attack.NearAttackableAction import NearAttackableAction
  4. from intelligine.synergy.event.transport.TakeableAction import TakeableAction
  5. from intelligine.synergy.event.transport.PutableAction import PutableAction
  6. from intelligine.synergy.event.CycleAction import CycleAction
  7. class Colony(SynergyCollection):
  8. def __init__(self, configuration):
  9. super().__init__(configuration)
  10. self._actions = [MoveAction, NearAttackableAction, TakeableAction, PutableAction,
  11. CycleAction]
  12. self._start_position = configuration.get_start_position()
  13. def get_start_position(self):
  14. return self._start_position