Commit 0dbb0f9f authored by Killian LUCAS's avatar Killian LUCAS
Browse files

conception.adoc + modification PowerApplicator.java (la signature de la...

conception.adoc + modification PowerApplicator.java (la signature de la méthode applySurvivalCardPower) pour la CLARTÉ
parent 39615ab4
......@@ -180,9 +180,33 @@ class RoomFactory{
- {static} idCounter : AtomicInteger
- {static} createRoom(playerId : String) : Room
}
class RoomServiceController{
- rooms : Map<String, Room>
- players : Map<String, Room>
+ createRoom(playerId : String) : String
+ joinRoom(playerId : String, roomId : String) : Response
+ startGame(playerId : String, creatureId : Integer, board : Board, planet : Planet) : Response
}
class PowerApplicator{
- database : NotAloneDatabase
- applyPlayerCard(game : Game, idPlayer : Integer, playerCard : PlayerCard)
- resolvePlace(game : Game, idPlayer : Integer, playerCard : PlayerCard)
+ filterSpecialCaseBlockPlace(game : Game, idPlayer : Integer, playerCard : PlayerCard) : Boolean
+ filterJetonBlockPlace(game : Game, idPlayer : Integer, playerCard : PlayerCard) : Boolean
- applyPlaceCardPower(game : Game, cardName : CardName, idPlayer : Integer)
- applyTrackingCardPower(game : Game, cardName : CardName, idPlayer : Integer)
- applySurvivalCardPower(game : Game, cardName : CardName, idPlayer : Integer)
}
....
TODO GameRoundVariables
TODO PowerApplicator
=== Item
==== Action
......@@ -291,7 +315,7 @@ package action{
....
=== Board
==== Board
.Package board
[plantuml]
....
......@@ -357,7 +381,7 @@ package board{
}
....
=== Card
==== Card
.Package card
[plantuml]
....
......@@ -434,7 +458,7 @@ package card{
=== Jeton
==== Jeton
.Package jeton
[plantuml]
....
......@@ -480,7 +504,7 @@ package jeton{
}
....
=== Pioche
==== Pioche
.Package pioche
[plantuml]
....
......@@ -501,7 +525,7 @@ package pioche{
}
....
=== Planet
==== Planet
.Package planet
[plantuml]
....
......@@ -647,7 +671,7 @@ package planet{
....
=== Player
==== Player
.Package player
[plantuml]
....
......@@ -989,7 +1013,7 @@ package player{
=== Power
==== Power
.Package power
[plantuml]
....
......@@ -1046,65 +1070,22 @@ package utilitary{
GameRequest <|-- GameJoinRequest
....
=== GameController
.Package gamecontroller
[plantuml]
....
package gamecontroller{
interface GameControllerInteface{
+ isFinish() : Boolean
+ apply(power : Power)
+ apply(powers : PowerContainer)
+ playerHasFinished(playerId : Integer, phase : Phase)
+ phaseIsFinish() : Boolean
+ playerPlayCard(playerId : Integer, card : Card)
+ playerPlayCard(playerId : Integer, cards : Card[*])
+ playerPlaceJeton(playerId : Integer, jeton : PlacedJeton)
+ playerPlaceJeton(playerId : Integer, jetons : PlacedJeton[*])
+ playerResist(playerId : Integer)
+ playerGiveUp(playerId : Integer)
+ playerChooseAction(playerID : Integer, action : Action)
}
}
....
== Handler
=== Game
.Game
[plantuml]
....
class Game{
- requests : BlockingQueue<GameRequest>
- numberPlayers : AtomicInteger
- gameId : String
- gameCreatorId : String
- planet : Planet
- board : Board
- players : Map<String, Pair<Integer, PlayerTeam>>
- isStart : Boolean
- isClose : Boolean
- play : Thread
+ getGameId() : String
+ getPlayers() : Map<String, Pair<Integer, PlayerTeam>>
+ getPlanet() : Planet
+ isCreator(playerId : String) : Boolean
+ join(playerId : String) : Response
+ start(playerId :String) : Response
- requestManagement()
- handleRequest(request : GameRequest)
}
class GameFactory{
- {static} idCounter : AtomicInteger
- {static} createGame(playerId : String, board : Board, planet : Planet) : Game
}
....
=== Divers
=== Player
.Divers
......
......@@ -45,7 +45,7 @@ public class PowerApplicator {
applyTrackingCardPower(game, playerCard.getCardName(), idPlayer);
}
else{
applySurvivalCardPower(game, idPlayer, playerCard.getCardName());
applySurvivalCardPower(game, playerCard.getCardName(), idPlayer);
}
}
......@@ -355,7 +355,7 @@ public class PowerApplicator {
}
}
public static void applySurvivalCardPower(Game game, int idPlayer, CardName cardName) {
public static void applySurvivalCardPower(Game game, CardName cardName, int idPlayer) {
switch (cardName) {
case ADRENALINE:
applySurvivalAdrenaline(game, idPlayer);
......
......@@ -3413,7 +3413,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
traque.subWillingness(1);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), ADRENALINE);
PowerApplicator.applySurvivalCardPower(game, ADRENALINE, traque.getInGameId());
assertEquals(3, traque.getNumberWillingness());
}
......@@ -3433,7 +3433,7 @@ class PowerApplicatorTest {
PlacedJeton placedJeton = new PlacedJeton(JetonSymbol.CREATURE, Place.PLACE_ONE);
planet.placeJeton(placedJeton);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), ALERTE);
PowerApplicator.applySurvivalCardPower(game, ALERTE, traque.getInGameId());
PowerApplicator.resolvePlace(game, traque.getInGameId(), antre);
assertEquals(3, traque.getNumberWillingness());
......@@ -3447,7 +3447,7 @@ class PowerApplicatorTest {
planet.forceMovePlanetPawn();
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), AMPLIFICATEUR);
PowerApplicator.applySurvivalCardPower(game, AMPLIFICATEUR, traque.getInGameId());
assertTrue(planet.planetPawnIsActive());
}
......@@ -3461,7 +3461,7 @@ class PowerApplicatorTest {
planetExtension.forceMovePlanetPawn();
planetExtension.forceMovePlanetPawn();
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), AMPLIFICATEUR);
PowerApplicator.applySurvivalCardPower(game, AMPLIFICATEUR, traque.getInGameId());
Score score = new Score(2);
score.moveBackCreature(1);
......@@ -3474,7 +3474,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), BROUILLAGE);
PowerApplicator.applySurvivalCardPower(game, BROUILLAGE, traque.getInGameId());
assertTrue(game.getGameRoundVariables().defaussePlaceCardsAreHidden());
}
......@@ -3495,7 +3495,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), CAVALE);
PowerApplicator.applySurvivalCardPower(game, CAVALE, traque.getInGameId());
//Start phase 1
game.startNextPhase();
......@@ -3523,7 +3523,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), DETECTEUR);
PowerApplicator.applySurvivalCardPower(game, DETECTEUR, traque.getInGameId());
PowerApplicator.resolvePlace(game, traque.getInGameId(), plage);
assertTrue(traque.getDefausse().isEmpty());
......@@ -3547,7 +3547,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
traque.addPlaceCard(artefact);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), DRONE);
PowerApplicator.applySurvivalCardPower(game, DRONE, traque.getInGameId());
PowerApplicator.resolvePlace(game, traque.getInGameId(), plage);
assertTrue(traque.getDefausse().isEmpty());
......@@ -3575,7 +3575,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), DRONE);
PowerApplicator.applySurvivalCardPower(game, DRONE, traque.getInGameId());
PowerApplicator.resolvePlace(game, traque.getInGameId(), plage);
assertTrue(traque.getDefausse().isEmpty());
......@@ -3590,7 +3590,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
Creature creature = game.getCreature();
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), ENTRAVE);
PowerApplicator.applySurvivalCardPower(game, ENTRAVE, traque.getInGameId());
assertFalse(game.getGameRoundVariables().canPlaceJetonCreatureOnPlaces6To10());
TrackingCard fake = new TrackingCard(ANGOISSE, "","",Phase.PREPHASE_1,new ArrayList<>(Arrays.asList(JetonSymbol.CIBLE, JetonSymbol.ARTEMIA)));
......@@ -3625,7 +3625,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), EQUIPEMENT);
PowerApplicator.applySurvivalCardPower(game, EQUIPEMENT, traque.getInGameId());
assertTrue(traque.getSurvivalCardsHand().contains(survivalCard));
}
......@@ -3640,7 +3640,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), EQUIPEMENT);
PowerApplicator.applySurvivalCardPower(game, EQUIPEMENT, traque.getInGameId());
assertFalse(traque.getSurvivalCardsHand().contains(survivalCard));
}
......@@ -3660,7 +3660,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), EQUIPEMENT);
PowerApplicator.applySurvivalCardPower(game, EQUIPEMENT, traque.getInGameId());
assertTrue(traque.getSurvivalCardsHand().contains(survivalCard));
}
......@@ -3678,7 +3678,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), EQUIPEMENT);
PowerApplicator.applySurvivalCardPower(game, EQUIPEMENT, traque.getInGameId());
assertTrue(traque.getSurvivalCardsHand().contains(trash));
}
......@@ -3697,7 +3697,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), ESQUIVE);
PowerApplicator.applySurvivalCardPower(game, ESQUIVE, traque.getInGameId());
PowerApplicator.resolvePlace(game, traque.getInGameId(), plage);
Score score = new Score(2);
......@@ -3725,7 +3725,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), FAUSSE_PISTE);
PowerApplicator.applySurvivalCardPower(game, FAUSSE_PISTE, traque.getInGameId());
PowerApplicator.resolvePlace(game, traque.getInGameId(), plage);
Score score = new Score(2);
......@@ -3755,7 +3755,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), HOLOGRAMME);
PowerApplicator.applySurvivalCardPower(game, HOLOGRAMME, traque.getInGameId());
PowerApplicator.resolvePlace(game, traque.getInGameId(), plage);
Score score = new Score(2);
......@@ -3796,7 +3796,7 @@ class PowerApplicatorTest {
assertTrue(planet.findJetonsSymbolsOnCard(jungle).contains(JetonSymbol.CIBLE));
assertTrue(planet.findJetonsSymbolsOnCard(riviere).contains(JetonSymbol.CIBLE));
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), LEURRE);
PowerApplicator.applySurvivalCardPower(game, LEURRE, traque.getInGameId());
assertTrue(planet.findJetonsSymbolsOnCard(antre).contains(JetonSymbol.CIBLE));
assertTrue(planet.findJetonsSymbolsOnCard(jungle).contains(JetonSymbol.ARTEMIA));
......@@ -3815,7 +3815,7 @@ class PowerApplicatorTest {
assertTrue(planet.findJetonsSymbolsOnCard(jungle).contains(JetonSymbol.ARTEMIA));
assertTrue(planet.findJetonsSymbolsOnCard(riviere).contains(JetonSymbol.ARTEMIA));
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), LEURRE);
PowerApplicator.applySurvivalCardPower(game, LEURRE, traque.getInGameId());
assertTrue(planet.findJetonsSymbolsOnCard(antre).contains(JetonSymbol.ARTEMIA));
assertTrue(planet.findJetonsSymbolsOnCard(jungle).contains(JetonSymbol.CIBLE));
......@@ -3837,7 +3837,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), MIMETISME);
PowerApplicator.applySurvivalCardPower(game, MIMETISME, traque.getInGameId());
PowerApplicator.resolvePlace(game, traque.getInGameId(), plage);
Score score = new Score(2);
......@@ -3860,7 +3860,7 @@ class PowerApplicatorTest {
game.getBoard().moveForwardTraque(12);
assertEquals(new Score(7, 1), game.getBoard().getScore());
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), NAVETTE);
PowerApplicator.applySurvivalCardPower(game, NAVETTE, traque.getInGameId());
assertEquals(new Score(7, 0), game.getBoard().getScore());
......@@ -3885,7 +3885,7 @@ class PowerApplicatorTest {
List<SurvivalCard> survivalCards = new ArrayList<>(game.getSurvivalCardPioche().getCards());
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), PLANQUES);
PowerApplicator.applySurvivalCardPower(game, PLANQUES, traque.getInGameId());
PowerApplicator.resolvePlace(game, traque.getInGameId(), antre);
......@@ -3913,7 +3913,7 @@ class PowerApplicatorTest {
List<SurvivalCard> survivalCards = new ArrayList<>(game.getSurvivalCardPioche().getCards());
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), PLANQUES);
PowerApplicator.applySurvivalCardPower(game, PLANQUES, traque.getInGameId());
PowerApplicator.resolvePlace(game, traque.getInGameId(), antre);
......@@ -3939,7 +3939,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), PORTAIL_SURVIVAL);
PowerApplicator.applySurvivalCardPower(game, PORTAIL_SURVIVAL, traque.getInGameId());
PowerApplicator.resolvePlace(game, traque.getInGameId(), rover);
......@@ -3963,7 +3963,7 @@ class PowerApplicatorTest {
traque2.playPlaceCard(plage);
traque3.playPlaceCard(plage);
PowerApplicator.applySurvivalCardPower(game, traque1.getInGameId(), RALLIEMENT);
PowerApplicator.applySurvivalCardPower(game, RALLIEMENT, traque1.getInGameId());
PowerApplicator.resolvePlace(game, traque1.getInGameId(), plage);
PowerApplicator.resolvePlace(game, traque2.getInGameId(), plage);
......@@ -3995,7 +3995,7 @@ class PowerApplicatorTest {
Traque traque1 = (Traque) game.getPlayer(2);
PowerApplicator.applySurvivalCardPower(game, traque1.getInGameId(), REFUGE);
PowerApplicator.applySurvivalCardPower(game, REFUGE, traque1.getInGameId());
//Phase 1
game.startNextPhase();
......@@ -4029,11 +4029,11 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
//Do nothing when there is not cards in defausse
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), REGENERATION);
PowerApplicator.applySurvivalCardPower(game, REGENERATION, traque.getInGameId());
traque.throwAwayPlaceCard(plage);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), REGENERATION);
PowerApplicator.applySurvivalCardPower(game, REGENERATION, traque.getInGameId());
PowerApplicator.resolvePlace(game, traque.getInGameId(), rover);
......@@ -4057,7 +4057,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), RESISTANCE);
PowerApplicator.applySurvivalCardPower(game, RESISTANCE, traque.getInGameId());
PowerApplicator.resolvePlace(game, traque.getInGameId(), plage);
Score score = new Score(2);
......@@ -4090,7 +4090,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
traque.playPlaceCard(rover);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), RETRAITE);
PowerApplicator.applySurvivalCardPower(game, RETRAITE, traque.getInGameId());
game.managePhase3();
......@@ -4110,7 +4110,7 @@ class PowerApplicatorTest {
List<TrackingCard> trackingCards = new ArrayList<>(creature.getTrackingCardHand());
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), RIPOSTE);
PowerApplicator.applySurvivalCardPower(game, RIPOSTE, traque.getInGameId());
assertEquals(1, creature.getTrackingCardHand().size());
assertTrue(trackingCards.containsAll(game.getTrackingCardPioche().getTrash()));
......@@ -4133,7 +4133,7 @@ class PowerApplicatorTest {
creature.getTrackingCardHand().clear();
creature.addTrackingCard(acharnement);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), SACRIFICE);
PowerApplicator.applySurvivalCardPower(game, SACRIFICE, traque.getInGameId());
//Start Phase1
game.startNextPhase();
......@@ -4157,7 +4157,7 @@ class PowerApplicatorTest {
creature.addTrackingCard(acharnement);
traque.throwAwayPlaceCard(Arrays.asList(antre, jungle, riviere, plage, rover));
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), SACRIFICE);
PowerApplicator.applySurvivalCardPower(game, SACRIFICE, traque.getInGameId());
//Start Phase1
game.startNextPhase();
......@@ -4177,7 +4177,7 @@ class PowerApplicatorTest {
traque.throwAwayPlaceCard(Arrays.asList(antre, jungle, riviere, plage));
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), SECOND_SOUFFLE);
PowerApplicator.applySurvivalCardPower(game, SECOND_SOUFFLE, traque.getInGameId());
assertTrue(traque.getPlaceCards().containsAll(Arrays.asList(antre, jungle, riviere, plage, rover)));
assertTrue(traque.getDefausse().isEmpty());
......@@ -4191,7 +4191,7 @@ class PowerApplicatorTest {
traque.throwAwayPlaceCard(Arrays.asList(antre, jungle, riviere));
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), SECOND_SOUFFLE);
PowerApplicator.applySurvivalCardPower(game, SECOND_SOUFFLE, traque.getInGameId());
assertTrue(traque.getPlaceCards().containsAll(Arrays.asList(plage, rover)));
assertTrue(traque.getDefausse().containsAll(Arrays.asList(antre, jungle, riviere)));
......@@ -4212,7 +4212,7 @@ class PowerApplicatorTest {
traque.throwAwayPlaceCard(Arrays.asList(antre, jungle, riviere));
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), SIXIEME_SENS);
PowerApplicator.applySurvivalCardPower(game, SIXIEME_SENS, traque.getInGameId());
assertTrue(traque.getPlaceCards().containsAll(Arrays.asList(plage, rover, antre, jungle)));
assertTrue(traque.getDefausse().contains(riviere));
......@@ -4226,7 +4226,7 @@ class PowerApplicatorTest {
traque.throwAwayPlaceCard(Arrays.asList(antre, jungle));
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), SIXIEME_SENS);
PowerApplicator.applySurvivalCardPower(game, SIXIEME_SENS, traque.getInGameId());
assertTrue(traque.getPlaceCards().containsAll(Arrays.asList(plage, rover, antre, jungle, riviere)));
assertTrue(traque.getDefausse().isEmpty());
......@@ -4240,7 +4240,7 @@ class PowerApplicatorTest {
traque.throwAwayPlaceCard(Collections.singletonList(antre));
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), SIXIEME_SENS);
PowerApplicator.applySurvivalCardPower(game, SIXIEME_SENS, traque.getInGameId());
assertTrue(traque.getPlaceCards().containsAll(Arrays.asList(plage, rover, antre, jungle, riviere)));
assertTrue(traque.getDefausse().isEmpty());
......@@ -4255,7 +4255,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), SYSTEME_D);
PowerApplicator.applySurvivalCardPower(game, SYSTEME_D, traque.getInGameId());
PowerApplicator.resolvePlace(game, traque.getInGameId(), plage);
......@@ -4276,7 +4276,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), SYSTEME_D);
PowerApplicator.applySurvivalCardPower(game, SYSTEME_D, traque.getInGameId());
PowerApplicator.resolvePlace(game, traque.getInGameId(), dome);
......@@ -4300,7 +4300,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
traque.throwAwayPlaceCard(Arrays.asList(antre, jungle, riviere, plage, rover));
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), TENACITE);
PowerApplicator.applySurvivalCardPower(game, TENACITE, traque.getInGameId());
//Start Phase 1
game.startNextPhase();
......@@ -4330,7 +4330,7 @@ class PowerApplicatorTest {
traque.addPlaceCard(marais);
traque.throwAwayPlaceCard(Arrays.asList(antre, jungle, riviere, plage, rover, marais));
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), TENACITE);
PowerApplicator.applySurvivalCardPower(game, TENACITE, traque.getInGameId());
//Start Phase 1
game.startNextPhase();
......@@ -4347,7 +4347,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), VACCIN);
PowerApplicator.applySurvivalCardPower(game, VACCIN, traque.getInGameId());
Score score = new Score(2);
score.moveBackCreature(1);
......@@ -4360,7 +4360,7 @@ class PowerApplicatorTest {
Traque traque = (Traque) game.getPlayer(2);
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), VOLTE_FACE);
PowerApplicator.applySurvivalCardPower(game, VOLTE_FACE, traque.getInGameId());
traque.playPlaceCard(antre);
......@@ -4390,7 +4390,7 @@ class PowerApplicatorTest {
assertTrue(traque.getPlaceCardsPlayed().contains(jungle));
assertTrue(traque.getDefausse().contains(antre));
PowerApplicator.applySurvivalCardPower(game, traque.getInGameId(), VORTEX);
PowerApplicator.applySurvivalCardPower(game, VORTEX, traque.getInGameId());
assertTrue(traque.getPlaceCards().contains(jungle));
assertFalse(traque.getDefausse().contains(antre));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment