1616use Stu \Module \Ship \Lib \ShipLoaderInterface ;
1717use Stu \Module \Ship \Lib \TholianWebUtilInterface ;
1818use Stu \Module \Spacecraft \Lib \Battle \Weapon \TholianWebWeaponPhaseInterface ;
19+ use Stu \Module \Spacecraft \Lib \SpacecraftRemoverInterface ;
1920use Stu \Module \Spacecraft \View \ShowSpacecraft \ShowSpacecraft ;
2021
2122final class ImplodeTholianWeb implements ActionControllerInterface
@@ -25,10 +26,11 @@ final class ImplodeTholianWeb implements ActionControllerInterface
2526 private LoggerUtilInterface $ loggerUtil ;
2627
2728 public function __construct (
28- private ShipLoaderInterface $ shipLoader ,
29- private TholianWebUtilInterface $ tholianWebUtil ,
30- private PrivateMessageSenderInterface $ privateMessageSender ,
31- private TholianWebWeaponPhaseInterface $ tholianWebWeaponPhase ,
29+ private readonly ShipLoaderInterface $ shipLoader ,
30+ private readonly TholianWebUtilInterface $ tholianWebUtil ,
31+ private readonly PrivateMessageSenderInterface $ privateMessageSender ,
32+ private readonly TholianWebWeaponPhaseInterface $ tholianWebWeaponPhase ,
33+ private readonly SpacecraftRemoverInterface $ spacecraftRemover ,
3234 LoggerUtilFactoryInterface $ loggerUtilFactory
3335 ) {
3436 $ this ->loggerUtil = $ loggerUtilFactory ->getLoggerUtil ();
@@ -103,6 +105,7 @@ public function handle(GameControllerInterface $game): void
103105 $ game ->getInfo ()->addInformationWrapper ($ informations );
104106 }
105107
108+ $ this ->spacecraftRemover ->remove ($ web );
106109
107110 $ this ->loggerUtil ->log ('10 ' );
108111
0 commit comments