<?php
-// Decks for cargo
+// General (base) deck
class BaseDeck extends BaseDeckStructure {
/**
- * Constructor for cargo decks in general
- */
+ * Constructor for cargo decks in general
+ */
private function __construct ($class) {
// Call parent constructor
parent::constructor($class);
));
// Set description
- $this->setPartDescr("Deck");
-
- // Maybe clean up?
- if ($class == __CLASS__) {
- $this->removeSystemArray();
- }
+ $this->setPartDescr("Allgemeines Deck");
}
- // Ruft nur den privaten Konstruktor auf
+ /**
+ * Calls the private constructor
+ *
+ * @param $class The class' name
+ * @return void
+ */
public function constructor ($class) {
$this->__construct($class);
}
- // Ein allgemeines Deck erstellen
- public static function createBaseDeck () {
- // Instanz holen
- $deckInstance = new BaseDeck(__CLASS__);
-
- // Debug message
- if ((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) $deckInstance->getDebugInstance()->output(sprintf("[%s:%d] Ein allgemeines Deck wird konstruiert.<br />\n",
- __CLASS__,
- __LINE__
- ));
-
- // Unique-ID setzen
- $deckInstance->createUniqueID();
-
- // Instanz zurueckgeben
- return $deckInstance;
- }
-
/**
* Stub!
*/