Passed
Push — master ( 888025...8927c7 )
by Paweł
03:33
created

FightWolfEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 7
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 10
ccs 0
cts 8
cp 0
crap 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AardsGerds\Game\Event\Story\FirstChapter\WoodsTravel\FightWolf;
6
7
use AardsGerds\Game\Build\Experience;
8
use AardsGerds\Game\Entity\Beast\Animal\Wolf;
9
use AardsGerds\Game\Entity\EntityCollection;
10
use AardsGerds\Game\Event\DecisionCollection;
11
use AardsGerds\Game\Event\FightEvent;
12
13
final class FightWolfEvent extends FightEvent
14
{
15
    public function __construct(Wolf $wolf)
16
    {
17
        parent::__construct(
18
            new FightWolfContext(),
19
            new DecisionCollection([
20
                new LootWolfDecision($wolf),
21
                new ContinueTravelDecision(),
22
            ]),
23
            new EntityCollection([$wolf]),
24
            new Experience(200),
25
        );
26
    }
27
}
28