mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
tests: improved load tests (improved progress bar, added effects stats)
This commit is contained in:
parent
f5b901beb4
commit
3405b51aaf
7 changed files with 55 additions and 24 deletions
|
|
@ -62,7 +62,11 @@ public class GameView implements Serializable {
|
|||
private final int turn;
|
||||
private boolean special = false;
|
||||
private final boolean rollbackTurnsAllowed;
|
||||
|
||||
// for debug only
|
||||
// TODO: implement and support in admin tools
|
||||
private int totalErrorsCount;
|
||||
private int totalEffectsCount;
|
||||
|
||||
public GameView(GameState state, Game game, UUID createdForPlayerId, UUID watcherUserId) {
|
||||
Player createdForPlayer = null;
|
||||
|
|
@ -209,6 +213,7 @@ public class GameView implements Serializable {
|
|||
}
|
||||
this.rollbackTurnsAllowed = game.getOptions().rollbackTurnsAllowed;
|
||||
this.totalErrorsCount = game.getTotalErrorsCount();
|
||||
this.totalEffectsCount = game.getTotalEffectsCount();
|
||||
}
|
||||
|
||||
private void checkPaid(UUID uuid, StackAbility stackAbility) {
|
||||
|
|
@ -349,4 +354,8 @@ public class GameView implements Serializable {
|
|||
public int getTotalErrorsCount() {
|
||||
return this.totalErrorsCount;
|
||||
}
|
||||
|
||||
public int getTotalEffectsCount() {
|
||||
return this.totalEffectsCount;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue