mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Added turn counter to message info.
This commit is contained in:
@@ -115,7 +115,7 @@ public class GameNew {
|
||||
forge.card.trigger.Trigger.resetIDs();
|
||||
AllZone.getTriggerHandler().clearTriggerSettings();
|
||||
AllZone.getTriggerHandler().clearDelayedTrigger();
|
||||
CMessage.SINGLETON_INSTANCE.updateGameCount();
|
||||
CMessage.SINGLETON_INSTANCE.updateGameInfo();
|
||||
|
||||
// friendliness
|
||||
Card.resetUniqueNumber();
|
||||
|
||||
@@ -134,7 +134,7 @@ public final class GameSummary {
|
||||
*
|
||||
* @return the turn game ended
|
||||
*/
|
||||
public int getTurnGameEnded() {
|
||||
public int getLastTurnNumber() {
|
||||
return this.lastTurnNumber;
|
||||
}
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ import forge.card.trigger.TriggerType;
|
||||
import forge.game.player.Player;
|
||||
import forge.game.zone.ZoneType;
|
||||
import forge.gui.match.CMatchUI;
|
||||
import forge.gui.match.controllers.CMessage;
|
||||
import forge.gui.match.nonsingleton.VField.PhaseLabel;
|
||||
|
||||
/**
|
||||
@@ -82,6 +83,7 @@ public class PhaseUtil {
|
||||
|
||||
Singletons.getModel().getGameState().getPhaseHandler().turnReset();
|
||||
Singletons.getModel().getGameSummary().notifyNextTurn();
|
||||
CMessage.SINGLETON_INSTANCE.updateGameInfo();
|
||||
|
||||
AllZone.getCombat().reset();
|
||||
AllZone.getCombat().setAttackingPlayer(turn);
|
||||
|
||||
@@ -398,7 +398,7 @@ public class QuestWinLoseHandler extends ControlWinLose {
|
||||
}
|
||||
|
||||
// Early turn bonus
|
||||
final int winTurn = game.getTurnGameEnded();
|
||||
final int winTurn = game.getLastTurnNumber();
|
||||
final int turnCredits = this.getCreditsRewardForWinByTurn(winTurn);
|
||||
|
||||
if (winTurn == 0) {
|
||||
|
||||
@@ -83,12 +83,13 @@ public enum CMessage implements ICDoc {
|
||||
VMessage.SINGLETON_INSTANCE.getTarMessage().setText(s0);
|
||||
}
|
||||
|
||||
/** Updates count label in input area. */
|
||||
public void updateGameCount() {
|
||||
VMessage.SINGLETON_INSTANCE.getLblGames().setText("<html>Game #"
|
||||
/** Updates counter label in message area. */
|
||||
public void updateGameInfo() {
|
||||
VMessage.SINGLETON_INSTANCE.getLblGames().setText(
|
||||
Constant.Runtime.getGameType().toString() + ": Game #"
|
||||
+ (Singletons.getModel().getMatchState().getGamesPlayedCount() + 1)
|
||||
+ " of " + Singletons.getModel().getMatchState().getGamesPerMatch()
|
||||
+ "<br>" + Constant.Runtime.getGameType().toString() + " mode</html>");
|
||||
+ ", turn " + Singletons.getModel().getGameSummary().getLastTurnNumber());
|
||||
}
|
||||
|
||||
/** Flashes animation on input panel if play is currently waiting on input. */
|
||||
|
||||
Reference in New Issue
Block a user