Colony   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
dl 0
loc 10
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __init__() 0 5 1
A get_start_position() 0 2 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