getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.
\n",
__CLASS__,
__LINE__
));
// Set description
$this->setPartDescr("Brücke");
// Generate unique ID number
$this->createUniqueID();
// Clean up a little
$this->removeSystemArray();
$this->removePartInstance();
}
// Eine Kommandobruecke erstellen
public static function createBridge ($width, $height, $length) {
// Instanz holen
$bridgeInstance = new Bridge();
// Debug message
if ((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) $bridgeInstance->getDebugInstance()->output(sprintf("[%s:%d] Eine Brücke wird konstruiert...
\n",
__CLASS__,
__LINE__
));
// Abmasse setzen
$bridgeInstance->setWidth($width);
$bridgeInstance->setHeight($height);
$bridgeInstance->setLength($length);
//�Instanz zurueckgeben
return $bridgeInstance;
}
// Overwritten method for tradeable items
public function isTradeable () {
return true;
}
/**
* Stub!
*/
public function saveObjectToDatabase () {
$this->getDebugInstance()->output(sprintf("[%s:] Stub %s erreicht.",
$this->__toString(),
__FUNCTION__
));
}
/**
* Limits this object with an ObjectLimits instance
*/
public function limitObject (ObjectLimits $limitInstance) {
ApplicationEntryPoint::app_die("".__METHOD__." reached! Stub!");
}
}
// [EOF]
?>