Total Complexity | 9 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 57.14% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | trait SpacecraftInteractionTrait |
||
11 | { |
||
12 | use SpacecraftTrait; |
||
13 | use HasSpacecraftSystemTrait; |
||
14 | use SpacecraftSystemHealthTrait; |
||
15 | |||
16 | public function isTractorbeamPossible(): bool |
||
17 | { |
||
18 | return TractorBeamShipSystem::isTractorBeamPossible($this); |
||
|
|||
19 | } |
||
20 | |||
21 | public function isBoardingPossible(): bool |
||
22 | { |
||
23 | return FightLib::isBoardingPossible($this); |
||
24 | } |
||
25 | |||
26 | public function isInterceptable(): bool |
||
27 | { |
||
28 | //TODO can tractored ships be intercepted?! |
||
29 | return $this->getThis()->getWarpDriveState(); |
||
30 | } |
||
31 | |||
32 | 1 | public function canIntercept(): bool |
|
39 | } |
||
40 | |||
41 | 3 | public function canMove(): bool |
|
45 | } |
||
46 | } |
||
47 |