--- /dev/null
+<?php
+// Decks fuer LKWs
+class TrainDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPart {
+ // Konstruktor
+ private function __construct () {
+ // Eltern-Konstruktor aufrufen
+ parent::constructor(__CLASS__);
+
+ // Debug message
+ if (((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
+ __CLASS__,
+ __LINE__
+ ));
+
+ // Beschreibung setzen
+ $this->setPartDescr("Zug-Deck");
+
+ // Unique-ID erzeugen
+ $this->createUniqueID();
+
+ // Clean up a little
+ $this->removeSystemArray();
+ }
+
+ // LKW-Deck erstellen
+ public static function createTrainDeck ($numDecks, $dim) {
+ // Instanz holen
+ $trainInstance = new TrainDeck();
+
+ // Debug message
+ if ((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) $trainInstance->getDebugInstance()->output(sprintf("[%s:%d] Ein LKW-Deck wird konstruiert...<br />\n",
+ __CLASS__,
+ __LINE__
+ ));
+
+ // Abmasse extrahieren
+ $trainInstance->extractDimensions($dim);
+
+ // Andere Daten uebetragen
+ $trainInstance->setNumDecks($numDecks);
+
+ // Nicht noetige Instanz
+ $trainInstance->removePartInstance();
+
+ // Instanz zurueckliefern
+ return $trainInstance;
+ }
+
+ // Deckanzahl entfernen
+ public function removeNumDecks() {
+ if ((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Anzahl Decks wurde gelöscht.<br />\n",
+ __CLASS__,
+ __LINE__
+ ));
+ parent::removeNumDecks();
+ }
+
+ // Setter-Methode fuer Anzahl Decks
+ public function setNumDecks ($numDecks) {
+ parent::setNumDecks($numDecks);
+ }
+
+ // Getter-Methode fuer Anzahl Decks
+ public function getNumDecks() {
+ return parent::getNumDecks();
+ }
+
+ // Overwritten method for tradeable items
+ public function isTradeable () {
+ return true;
+ }
+
+ /**
+ * Limits this object with an ObjectLimits instance
+ */
+ public function limitObject (ObjectLimits $limitInstance) {
+ ApplicationEntryPoint::app_die("".__METHOD__." reached! Stub!");
+ }
+}
+
+// [EOF]
+?>