Browse Source

refactoring: add names to player pane

main^2
fdai7736 11 months ago
parent
commit
f3deb95784
  1. 2
      src/main/java/de/hsfulda/onses/controllers/PlayerController.java
  2. 4
      src/main/java/de/hsfulda/onses/services/PlayerService.java

2
src/main/java/de/hsfulda/onses/controllers/PlayerController.java

@ -40,7 +40,7 @@ public class PlayerController implements Controller {
}
});
playerNameLabel.setText("Test");
playerNameLabel.setText(player.getPlayerName());
return parent;
}

4
src/main/java/de/hsfulda/onses/services/PlayerService.java

@ -46,8 +46,8 @@ public class PlayerService {
}
public PlayerService() {
addPlayerToList(new Player().setPlayerService(this));
addPlayerToList(new Player().setPlayerService(this));
addPlayerToList(new Player().setPlayerService(this).setPlayerName("Player"));
addPlayerToList(new Player().setPlayerService(this).setPlayerName("Bot"));
}
public void removeCardFromPlayerDeck(Card card) {

Loading…
Cancel
Save