예제 #1
0
/** Calls all the methods to draw a complete Dialog
  *
  * This method must be called by the subclasses.
  */
void RainbruRPG::Terminal::Dialog::drawDialog(){
  if (visible){
    drawEmpty();
    drawBorder();
    drawShadow();
    if (title.length()>0)
      drawTitle();
    
    drawCaption();
    drawButtons();
  }
}
예제 #2
0
void BoardDrawer::drawSquare(int row, int col) {
	if (m_board->isCovered(row, col)) {
		if (m_board->isFlaged(row, col)) {
			drawFlag(row, col);
		} else {
			drawCovered(row, col);
		}
	} else {
		if (m_board->isMined(row, col)) {
			drawMine(row, col);
		} else {
			drawEmpty(row, col, m_board->number(row, col));
		}
	}
}