Colony.py 924B

12345678910111213141516171819
  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.PutOutsideAction import PutOutsideAction
  5. from intelligine.synergy.event.transport.TakeableAction import TakeableAction
  6. from intelligine.synergy.event.transport.PutableAction import PutableAction
  7. from intelligine.synergy.event.CycleAction import CycleAction
  8. class Colony(SynergyCollection):
  9. def __init__(self, configuration):
  10. super().__init__(configuration)
  11. self._actions = [MoveAction, NearAttackableAction, TakeableAction, PutableAction,
  12. CycleAction, PutOutsideAction]
  13. self._start_position = configuration.get_start_position()
  14. def get_start_position(self):
  15. return self._start_position