Add Game UI logic #255
@@ -1,15 +1,11 @@
|
|||||||
package ch.unibas.dmi.dbis.cs108.casono.client.game;
|
package ch.unibas.dmi.dbis.cs108.casono.client.game;
|
||||||
|
|
||||||
import ch.unibas.dmi.dbis.cs108.casono.client.game.Card;
|
|
||||||
import ch.unibas.dmi.dbis.cs108.casono.client.game.Player;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents the current state of the poker game, including the phase, pot
|
* Represents the current state of the poker game, including the phase, pot size, current bet,
|
||||||
* size, current bet, dealer position,
|
* dealer position, active player, community cards, and player information.
|
||||||
* active player, community cards, and player information.
|
|
||||||
*/
|
*/
|
||||||
public class GameState {
|
public class GameState {
|
||||||
public String phase;
|
public String phase;
|
||||||
@@ -17,6 +13,7 @@ public class GameState {
|
|||||||
public int currentBet;
|
public int currentBet;
|
||||||
public int dealer;
|
public int dealer;
|
||||||
public int activePlayer;
|
public int activePlayer;
|
||||||
|
public int winnerIndex = -1;
|
||||||
|
|
||||||
public List<Card> communityCards = new ArrayList<>();
|
public List<Card> communityCards = new ArrayList<>();
|
||||||
public List<Player> players = new ArrayList<>();
|
public List<Player> players = new ArrayList<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user