forked from External/mage
* Some changes to game handling to support replay in the future (not working yet).
This commit is contained in:
parent
9a15bdb933
commit
e6f55d3b80
10 changed files with 55 additions and 37 deletions
|
|
@ -345,13 +345,13 @@ public class TableController {
|
|||
}
|
||||
}
|
||||
|
||||
public boolean replayTable(UUID userId) {
|
||||
if (table.getState() != TableState.FINISHED) {
|
||||
return false;
|
||||
}
|
||||
ReplayManager.getInstance().replayGame(table.getId(), userId);
|
||||
return true;
|
||||
}
|
||||
// public boolean replayTable(UUID userId) {
|
||||
// if (table.getState() != TableState.FINISHED) {
|
||||
// return false;
|
||||
// }
|
||||
// ReplayManager.getInstance().replayGame(table.getId(), userId);
|
||||
// return true;
|
||||
// }
|
||||
|
||||
private Player createPlayer(String name, String playerType, int skill) {
|
||||
Player player;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue