forked from External/mage
Cleaned up PhaseManager.
This commit is contained in:
parent
7579a60036
commit
a3e041e364
2 changed files with 47 additions and 20 deletions
|
|
@ -71,6 +71,7 @@ public class GameView implements Serializable {
|
|||
private List<CombatGroupView> combat = new ArrayList<CombatGroupView>();
|
||||
private TurnPhase phase;
|
||||
private PhaseStep step;
|
||||
private UUID activePlayerId;
|
||||
private String activePlayerName = "";
|
||||
private String priorityPlayerName = "";
|
||||
private int turn;
|
||||
|
|
@ -140,6 +141,7 @@ public class GameView implements Serializable {
|
|||
this.phase = state.getTurn().getPhaseType();
|
||||
this.step = state.getTurn().getStepType();
|
||||
this.turn = state.getTurnNum();
|
||||
this.activePlayerId = state.getActivePlayerId();
|
||||
if (state.getActivePlayerId() != null) {
|
||||
this.activePlayerName = state.getPlayer(state.getActivePlayerId()).getName();
|
||||
} else {
|
||||
|
|
@ -269,4 +271,8 @@ public class GameView implements Serializable {
|
|||
return priorityTime;
|
||||
}
|
||||
|
||||
public UUID getActivePlayerId() {
|
||||
return activePlayerId;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue