getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.
\n",
__CLASS__,
__LINE__
));
// Set description
$this->setPartDescr("Autodeck");
// Generate unique ID number
$this->createUniqueID();
// Clean up a little
$this->removeSystemArray();
}
// Autodeck erstellen
public static function createCarDeck ($numDecks, $dim) {
// Get new instance
$carInstance = new CarDeck();
// Debug message
if ((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) $carInstance->getDebugInstance()->output(sprintf("[%s:%d] Ein Autodeck wird konstruiert...
\n",
__CLASS__,
__LINE__
));
// Abmasse extrahieren
$carInstance->extractDimensions($dim);
// Andere Daten uebetragen
$carInstance->setNumDecks($numDecks);
// Nicht noetige Instanz
$carInstance->removePartInstance();
// Instanz zurueckgeben
return $carInstance;
}
// Deckanzahl entfernen
public function removeNumDecks() {
if ((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Anzahl Decks wurde gelöscht.
\n",
__CLASS__,
__LINE__
));
parent::removeNumDecks();
}
// Setter-Methode fuer Anzahl Decks
public final function setNumDecks($numDecks) {
parent::setNumDecks($numDecks);
}
// Getter-Methode fuer Anzahl Decks
public final 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]
?>