Package com.poker.game

Examples of com.poker.game.Player.act()


        //todo need bet value
        Table table = gameManager.getTable(room);
        if (table != null) {
            Player actionPlayer = table.getPlayer(player);
            if (actionPlayer != null) {
                actionPlayer.act(table, Action.BET, -1, -1);
            }
        }
    }

    @WebActionHandler
View Full Code Here


    public void call(@WebParam("room") String room, @WebParam("player") String player) {
        Table table = gameManager.getTable(room);
        if (table != null) {
            Player actionPlayer = table.getPlayer(player);
            if (actionPlayer != null) {
                actionPlayer.act(table, Action.CALL, -1, -1);
            }
        }
    }

    @WebActionHandler
View Full Code Here

    public void fold(@WebParam("room") String room, @WebParam("player") String player) {
        Table table = gameManager.getTable(room);
        if (table != null) {
            Player actionPlayer = table.getPlayer(player);
            if (actionPlayer != null) {
                actionPlayer.act(table, Action.FOLD, -1, -1);
            }
        }
    }

    @WebActionHandler
View Full Code Here

    public void check(@WebParam("room") String room, @WebParam("player") String player) {
        Table table = gameManager.getTable(room);
        if (table != null) {
            Player actionPlayer = table.getPlayer(player);
            if (actionPlayer != null) {
                actionPlayer.act(table, Action.CHECK, -1, -1);
            }
        }
    }

    @WebActionHandler
View Full Code Here

    public void raise(@WebParam("room") String room, @WebParam("player") String player) {
        Table table = gameManager.getTable(room);
        if (table != null) {
            Player actionPlayer = table.getPlayer(player);
            if (actionPlayer != null) {
                actionPlayer.act(table, Action.RAISE, -1, -1);
            }
        }

    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.