mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
game timer: Add chess-style buffer time option (#10598)
* UI Changes * Add new buffer time options * Main functionality * Final implementation Also added player UI for when they are using their buffer time (timer turns green)
This commit is contained in:
parent
b7543af939
commit
519b3988be
24 changed files with 273 additions and 16 deletions
|
|
@ -3856,6 +3856,16 @@ public class TestPlayer implements Player {
|
|||
return computerPlayer.getPriorityTimeLeft();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setBufferTimeLeft(int timeLeft) {
|
||||
computerPlayer.setBufferTimeLeft(timeLeft);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBufferTimeLeft() {
|
||||
return computerPlayer.getBufferTimeLeft();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasQuit() {
|
||||
return computerPlayer.hasQuit();
|
||||
|
|
|
|||
|
|
@ -1149,6 +1149,16 @@ public class PlayerStub implements Player {
|
|||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setBufferTimeLeft(int timeLeft) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBufferTimeLeft() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setReachedNextTurnAfterLeaving(boolean reachedNextTurnAfterLeaving) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue