Visa källkod
Nedanstående filer finns i denna katalog. Klicka på en fil för att visa dess innehåll.
- .buildpath
- .project
- CCard.php
- CCardHand.php
- CDeck.php
- argyle.jpg
- card.php
- common.php
- deck.php
- grunge.jpg
- hand.php
- index.php
- sessDest.php
- sessions.php
- sessions_mroos.php
- source.php
- template.php
- tiles.jpg
Stäng "CCardHand.php"
<?php
// ===============================================================
// Contents: Kortkod.
// Author: Staffan Lindsgård
// ===============================================================
require_once("CDeck.php");
class CCardHand {
private $theHand;
function __construct() {
$this->theHand = Array();
}
function __destruct() {
;
}
public function AddCard($thecard) {
array_push($this->theHand, $thecard);
}
public function DropAllCards() {
$this->theHand = Array();
}
public function GetHandAsCSS() {
$html = '';
foreach($this->theHand as $card) {
$html .= $card->GetCardAsCSS();
}
return $html;
}
}
?>