Merge commit
This commit is contained in:
@@ -174,11 +174,11 @@ private void handleGame(Notification notification) {
|
|||||||
} else if (notification instanceof PlayCardNotification n) {
|
} else if (notification instanceof PlayCardNotification n) {
|
||||||
if(n.getCard() == BonusCard.TURBO) {
|
if(n.getCard() == BonusCard.TURBO) {
|
||||||
guiHandler.turbo();
|
guiHandler.turbo();
|
||||||
app.getModelSynchronize().animationEnd();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(n.getColor() == ownColor) guiHandler.playCardOwn(n.getCard());
|
if(n.getColor() == ownColor) guiHandler.playCardOwn(n.getCard());
|
||||||
else guiHandler.playCardEnemy(n.getColor(), n.getCard());
|
else guiHandler.playCardEnemy(n.getColor(), n.getCard());
|
||||||
|
|
||||||
|
app.getModelSynchronize().animationEnd();
|
||||||
} else if (notification instanceof PlayerInGameNotification n) {
|
} else if (notification instanceof PlayerInGameNotification n) {
|
||||||
boardHandler.addPlayer(n.getColor(),n.getPiecesList());
|
boardHandler.addPlayer(n.getColor(),n.getPiecesList());
|
||||||
guiHandler.addPlayer(n.getColor(),n.getName());
|
guiHandler.addPlayer(n.getColor(),n.getName());
|
||||||
|
|||||||
@@ -92,9 +92,9 @@ public Game() {
|
|||||||
* This method initializes the draw pile with the predefined number of bonus cards.
|
* This method initializes the draw pile with the predefined number of bonus cards.
|
||||||
*/
|
*/
|
||||||
private void initializeDrawPile() {
|
private void initializeDrawPile() {
|
||||||
this.addBonusCards(new TurboCard(), AMOUNT_OF_TURBO_CARDS);
|
// this.addBonusCards(new TurboCard(), AMOUNT_OF_TURBO_CARDS);
|
||||||
// this.addBonusCards(new SwapCard(), AMOUNT_OF_SWAP_CARDS);
|
// this.addBonusCards(new SwapCard(), AMOUNT_OF_SWAP_CARDS);
|
||||||
// this.addBonusCards(new ShieldCard(), AMOUNT_OF_SHIELD_CARDS);
|
this.addBonusCards(new ShieldCard(), AMOUNT_OF_SHIELD_CARDS);
|
||||||
Collections.shuffle(this.drawPile);
|
Collections.shuffle(this.drawPile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user