Board boardPrevNew = null;
//getting buffer
strBuffer = getConsoleBuffer(pdata, playWnd);
parserResult = bufferParser.getParserResult(strBuffer,null);
if (parserResult == null) throw new ParserException();
if (parserResult.getCurrentRound() != Rounds.PREFLOP){
boardPrevNew = createBoardShablon(pdata);
switch (parserResult.getCurrentRound()) {
case FLOP:
parserResultPrev = bufferParser.getParserResult(strBuffer,Rounds.PREFLOP);
break;
case TURN:
parserResultPrev = bufferParser.getParserResult(strBuffer,Rounds.FLOP);
break;
case RIVER:
parserResultPrev = bufferParser.getParserResult(strBuffer,Rounds.TURN);
break;
}
if (parserResultPrev == null) throw new ParserException();
}
playWnd.setCurrentRound(parserResult.getCurrentRound());
BufferedImage[] hStacks = getStacksImages(pdata, playWnd);
hStacks = getPreparedStacksImages(pdata, hStacks, 2);