Package com.poker.ui.settings.tables

Examples of com.poker.ui.settings.tables.Table


        final int topX = playWnd.getLeftTopX();
        final int topY = playWnd.getLeftTopY();

        Boolean result;

        final Table table = pdata.getRoomSettings().getTableSettings(
                pdata.getProgramSettings().getCountPlayers());

        for (int i = 0; i < pdata.getProgramSettings().getCountPlayers(); i++) {
            for (int x = -2; x < 4; x++) {
                for (int y = -2; y < 4; y++) {
                    result = this.robot.analyzePixel(table.getPtPlayerButton(i).x + topX + x, table
                            .getPtPlayerButton(i).y
                            + topY + y, pdata.getRoomSettings().getButtonColorFrom(), pdata
                            .getRoomSettings().getButtonColorTo());
                    if (result) {
                        return i;
View Full Code Here


        final int topX = playWnd.getLeftTopX();
        final int topY = playWnd.getLeftTopY();
        Boolean result;

        final Table table = pdata.getRoomSettings().getTableSettings(
                pdata.getProgramSettings().getCountPlayers());

        result = false;
        for (int i = 0; i < emptyPlaces.length; i++) {
            for (int q = -1; q <= 1; q++) {
                for (int w = -1; w <= 1; w++) {
                    result = this.robot.analyzePixel(table.getptEmptyPlace(i).x + topX + q, table
                            .getptEmptyPlace(i).y
                            + topY + w, pdata.getRoomSettings().getColorIsEmptyPlaceFrom(), pdata
                            .getRoomSettings().getColorIsEmptyPlaceTo());
                    if (result) {
                        break;
View Full Code Here

        final int topX = playWnd.getLeftTopX();
        final int topY = playWnd.getLeftTopY();
        Boolean result;

        final Table table = pdata.getRoomSettings().getTableSettings(
                pdata.getProgramSettings().getCountPlayers());

        result = false;
        for (int i = 0; i < foldPlayers.length; i++) {
            for (int q = -1; q <= 4; q++) {
                for (int w = -3; w <= 3; w++) {
                    result = this.robot.analyzePixel(table.getPtPlayerFold(i).x + topX + q, table
                            .getPtPlayerFold(i).y
                            + topY + w, pdata.getRoomSettings().getColorFoldFrom(), pdata
                            .getRoomSettings().getColorFoldTo());
                    if (result) {
                        break;
View Full Code Here

        final int topX = playWnd.getLeftTopX();
        final int topY = playWnd.getLeftTopY();
        Boolean result;

        final Table table = pdata.getRoomSettings().getTableSettings(
                pdata.getProgramSettings().getCountPlayers());

        result = false;
        for (int i = 0; i < sitoutPlayers.length; i++) {
            for (int q = -1; q <= 1; q++) {
                for (int w = -3; w <= 3; w++) {
                    result = this.robot.analyzePixel(table.getPtPlayerSitout(i).x + topX + q, table
                            .getPtPlayerSitout(i).y
                            + topY + w, pdata.getRoomSettings().getColorSitoutFrom(), pdata
                            .getRoomSettings().getColorSitoutTo());
                    if (result) {
                        break;
View Full Code Here

        final int topX = playWnd.getLeftTopX();
        final int topY = playWnd.getLeftTopY();
        Boolean result;

        final Table table = pdata.getRoomSettings().getTableSettings(
                pdata.getProgramSettings().getCountPlayers());

        for (int i = 0; i < playersWithCards.length; i++) {
            result = this.robot.analyzePixel(table.getPtPlayerCard(i).x + topX, table
                    .getPtPlayerCard(i).y
                    + topY, pdata.getRoomSettings().getColorPlayerCards(), pdata.getRoomSettings()
                    .getColorPlayerCards());
            playersWithCards[i] = new Boolean(result);
        }
View Full Code Here

   
   
    BufferedImage pict = ImageIO.read(new File("c:\\temp\\euro1.bmp"));
   
   
    Table table = pData.getRoomSettings().getTableSettings(10);
    BufferedImage[] hStacks = new BufferedImage[10];
    Rectangle rect;
    for (int i = 0; i<10; i++){
      rect = table.getRectPlayerStack(i);
      hStacks[i] = pict.getSubimage(rect.x, rect.y, rect.width, rect.height);
     
     
    }
       
View Full Code Here

      }*/
    public BufferedImage[] captureScreenStacks(final PokerData pdata, final PlayWindow playWnd) {

        final int topX = playWnd.getLeftTopX();
        final int topY = playWnd.getLeftTopY();
        final Table table = pdata.getRoomSettings().getTableSettings(
                pdata.getProgramSettings().getCountPlayers());

        Rectangle tmpRect;
        final BufferedImage[] image = new BufferedImage[pdata.getProgramSettings()
                .getCountPlayers()];
        for (int i = 0; i < pdata.getProgramSettings().getCountPlayers(); i++) {
            tmpRect = new Rectangle(topX + table.getRectPlayerStack(i).x, topY
                    + table.getRectPlayerStack(i).y, table.getRectPlayerStack(i).width, table
                    .getRectPlayerStack(i).height);
            image[i] = this.robot.createScreenCapture(tmpRect);
        }

        return image;
View Full Code Here

TOP

Related Classes of com.poker.ui.settings.tables.Table

Copyright © 2018 www.massapicom. 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.