merge dev into test #33
@@ -100,7 +100,6 @@ public void onAction(String name, boolean isPressed, float tpf) {
|
|||||||
|
|
||||||
if(diceSelect != null) {
|
if(diceSelect != null) {
|
||||||
app.getModelSynchronize().rolledDice();
|
app.getModelSynchronize().rolledDice();
|
||||||
gameView.getGuiHandler().hideText();
|
|
||||||
}
|
}
|
||||||
else if(cardLayerSelect != null) {
|
else if(cardLayerSelect != null) {
|
||||||
//cardSelect
|
//cardSelect
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ public static void main(String[] args) {
|
|||||||
MdgaApp app = new MdgaApp();
|
MdgaApp app = new MdgaApp();
|
||||||
app.setSettings(settings);
|
app.setSettings(settings);
|
||||||
app.setShowSettings(false);
|
app.setShowSettings(false);
|
||||||
|
app.setPauseOnLostFocus(false);
|
||||||
app.start();
|
app.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -148,6 +148,7 @@ private void handleGame(Notification notification) {
|
|||||||
} else if (notification instanceof ResumeNotification) {
|
} else if (notification instanceof ResumeNotification) {
|
||||||
//TODO
|
//TODO
|
||||||
} else if (notification instanceof RollDiceNotification n) {
|
} else if (notification instanceof RollDiceNotification n) {
|
||||||
|
gameView.getGuiHandler().hideText();
|
||||||
if(n.getColor() == gameView.getOwnColor()){
|
if(n.getColor() == gameView.getOwnColor()){
|
||||||
guiHandler.rollDice(n.getEyes(), n.isTurbo() ? n.getMultiplier() : -1);
|
guiHandler.rollDice(n.getEyes(), n.isTurbo() ? n.getMultiplier() : -1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,14 @@ public class RollDiceNotification extends Notification{
|
|||||||
* @param color the color of the player that rolled the die.
|
* @param color the color of the player that rolled the die.
|
||||||
* @param eyes the number of eyes that were rolled.
|
* @param eyes the number of eyes that were rolled.
|
||||||
*/
|
*/
|
||||||
|
public RollDiceNotification(Color color, int eyes) {
|
||||||
|
this.color = color;
|
||||||
|
this.eyes = eyes;
|
||||||
|
this.turbo = false;
|
||||||
|
this.multiplier = -1;
|
||||||
|
this.isRanking = false;
|
||||||
|
}
|
||||||
|
|
||||||
public RollDiceNotification(Color color, int eyes, boolean isRanking) {
|
public RollDiceNotification(Color color, int eyes, boolean isRanking) {
|
||||||
this.color = color;
|
this.color = color;
|
||||||
this.eyes = eyes;
|
this.eyes = eyes;
|
||||||
|
|||||||
Reference in New Issue
Block a user