Colony.__init__()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
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
9
10
class Colony(SynergyCollection):
11
12
    def __init__(self, configuration):
13
        super().__init__(configuration)
14
        self._actions = [MoveAction, NearAttackableAction, TakeableAction, PutableAction,
15
                         CycleAction, PutOutsideAction]
16
        self._start_position = configuration.get_start_position()
17
18
    def get_start_position(self):
19
        return self._start_position