for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AardsGerds\Game\Event\Story\FirstChapter\MercenaryCamp\MeetMefadriel;
use AardsGerds\Game\Dialog\Consequence;
use AardsGerds\Game\Dialog\DialogOption;
use AardsGerds\Game\Dialog\DialogOptionCollection;
use AardsGerds\Game\Entity\Human\Mefadriel;
use AardsGerds\Game\Event\DecisionCollection;
use AardsGerds\Game\Event\DialogEvent;
final class MefadrielDialogEvent extends DialogEvent
{
public function __construct(Mefadriel $mefadriel)
parent::__construct(
new MefadrielDialogContext(),
new DecisionCollection([]),
$mefadriel,
new DialogOption(
'Hey, you. You are finally awake.',
new DialogOptionCollection([
'Who are you?',
new DialogOption('My name is Mefadriel. I command this miserable camp.'),
]),
),
'I need your sword.',
new DialogOption('Take it.', null, Consequence::fight()),
);
}