CPD Results
The following document contains the results of PMD's CPD 6.0.1.
Duplications
File |
Line |
de/tu_clausthal/in/bachelorproject2018/poker/game/round/CBetRound.java |
83 |
de/tu_clausthal/in/bachelorproject2018/poker/game/round/CBetRound.java |
115 |
m_player.check();
boolean nextRoundNeeded = false;
for (IPlayer player : m_table.getGameHub().getPlayerList()){
if ((!player.getAllIn() && !player.checkfolded() && player.getAmountBetThisRound() < m_table.getGameHub().getChipsHandler().getHighestBidThisRound()) ||
(m_table.getGameHub().getChipsHandler().getNewRound() && !m_table.getGameHub().getChipsHandler().updateWhoToAsk(m_player).getChecked())){
nextRoundNeeded = true;
}
}
if (nextRoundNeeded)
{
p_roundactions.add(new CBetRound(m_table, m_table.getGameHub().getChipsHandler().updateWhoToAsk(m_player)));
}
return false;
} |
File |
Line |
de/tu_clausthal/in/bachelorproject2018/poker/game/round/CBetRound.java |
48 |
de/tu_clausthal/in/bachelorproject2018/poker/game/round/CBetRound.java |
84 |
de/tu_clausthal/in/bachelorproject2018/poker/game/round/CBetRound.java |
117 |
nextRoundNeeded = false;
for (IPlayer player : m_table.getGameHub().getPlayerList()){
if ((!player.getAllIn() && !player.checkfolded() && player.getAmountBetThisRound() < m_table.getGameHub().getChipsHandler().getHighestBidThisRound()) ||
(m_table.getGameHub().getChipsHandler().getNewRound() && !m_table.getGameHub().getChipsHandler().updateWhoToAsk(m_player).getChecked())){
nextRoundNeeded = true;
}
}
//wenn der nachfolgende Spieler weniger gesetzt hat, als das maximum, muss ein neues BetRoundObjekt erzeugt werden
if (nextRoundNeeded)
{
p_roundactions.add(new CBetRound(m_table, m_table.getGameHub().getChipsHandler().updateWhoToAsk(m_player)));
} |