Ejemplo n.º 1
0
 /**
  * Displays the card images in the hand in a table row.
  * If the player is still playing (closedCard = true), then the first
  * card in the hand is closed.
  * @param boolean $closedCard
  */
 public function displayCards($closedCard)
 {
     // During play one of the dealer's cards is closed
     $first = true;
     $images = parent::getImages();
     // Display card images in a table row
     foreach ($images as $cardImage) {
         if ($closedCard && $first) {
             //Closed card image
             echo "<td class=\"card_img\"><img src=\"images/cards/b2fv.png\"></td>";
             $first = false;
         } else {
             echo $cardImage;
         }
     }
 }