Exemplo n.º 1
0
 @FXML
 private void handleP4SitLeave() {
   int iPlayerPosition = 4;
   btnP4SitLeave.setDisable(true);
   bP4Sit =
       handleSitLeave(bP4Sit, iPlayerPosition, lblP4Name, txtP4Name, btnP4SitLeave, hBoxP4Cards);
   btnP4SitLeave.setDisable(false);
 }
Exemplo n.º 2
0
 @FXML
 private void handleP2SitLeave() {
   int iPlayerPosition = 2;
   btnP2SitLeave.setDisable(true);
   bP2Sit =
       handleSitLeave(bP2Sit, iPlayerPosition, lblP2Name, txtP2Name, btnP2SitLeave, hBoxP2Cards);
   btnP2SitLeave.setDisable(false);
 }
Exemplo n.º 3
0
 @FXML
 private void handleP3SitLeave() {
   int iPlayerPosition = 3;
   btnP3SitLeave.setDisable(true);
   bP3Sit =
       handleSitLeave(bP3Sit, iPlayerPosition, lblP3Name, txtP3Name, btnP3SitLeave, hBoxP3Cards);
   btnP3SitLeave.setDisable(false);
 }
Exemplo n.º 4
0
 @FXML
 private void handleP1SitLeave() {
   int iPlayerPosition = 1;
   btnP1SitLeave.setDisable(true);
   bP1Sit =
       handleSitLeave(bP1Sit, iPlayerPosition, lblP1Name, txtP1Name, btnP1SitLeave, hBoxP1Cards);
   btnP1SitLeave.setDisable(false);
 }
  @FXML
  private void handleP4SitLeave() {

    if (this.iCardDrawn != 0) {
      displayWarning("Players must wait until the current game is over.");
      return;
    }

    int iPlayerPosition = 4;
    btnP4SitLeave.setDisable(true);
    bP4Sit =
        handleSitLeave(bP4Sit, iPlayerPosition, lblP4Name, txtP4Name, btnP4SitLeave, hBoxP4Cards);
    btnP4SitLeave.setDisable(false);
  }