revert 2 dicenow
This commit is contained in:
@@ -33,6 +33,7 @@ public class CardLayerHandler {
|
|||||||
private final Set<CardControl> selectableCards = new HashSet<>();
|
private final Set<CardControl> selectableCards = new HashSet<>();
|
||||||
|
|
||||||
private BonusCard cardSelect = null;
|
private BonusCard cardSelect = null;
|
||||||
|
private boolean show = false;
|
||||||
|
|
||||||
public CardLayerHandler(MdgaApp app, Texture2D backTexture) {
|
public CardLayerHandler(MdgaApp app, Texture2D backTexture) {
|
||||||
this.app = app;
|
this.app = app;
|
||||||
@@ -64,11 +65,14 @@ public void rollDice(int rollNum, Runnable actionAfter) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void showDice() {
|
public void showDice() {
|
||||||
|
if(show) return;
|
||||||
|
show = true;
|
||||||
cardLayer.addSpatial(diceControl.getSpatial());
|
cardLayer.addSpatial(diceControl.getSpatial());
|
||||||
diceControl.spin();
|
diceControl.spin();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void hideDice() {
|
public void hideDice() {
|
||||||
|
show = false;
|
||||||
diceControl.hide();
|
diceControl.hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ public RollDiceState(ClientState parent, ClientGameLogic logic) {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enter() {
|
public void enter() {
|
||||||
//logic.addNotification(new DiceNowNotification());
|
logic.addNotification(new DiceNowNotification());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -94,8 +94,8 @@ 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