2 // Die Aufbauten allgemein
3 class Bridge extends BaseUpperStructure implements ItemIsTradeable, ConstructableShipPart {
5 private function __construct () {
6 // Eltern-Konstruktor aufrufen
7 parent::constructor(__CLASS__);
10 if (((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
15 // Beschreibung setzen
16 $this->setPartDescr("Brücke");
19 $this->createUniqueID();
22 $this->removeSystemArray();
23 $this->removePartInstance();
26 // Eine Kommandobruecke erstellen
27 public static function createBridge ($width, $height, $length) {
29 $bridgeInstance = new Bridge();
32 if ((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) $bridgeInstance->getDebugInstance()->output(sprintf("[%s:%d] Eine Brücke wird konstruiert...<br />\n",
38 $bridgeInstance->setWidth($width);
39 $bridgeInstance->setHeight($height);
40 $bridgeInstance->setLength($length);
42 // Instanz zurueckgeben
43 return $bridgeInstance;
46 // Overwritten method for tradeable items
47 public function isTradeable () {
54 public function saveObjectToDatabase () {
55 $this->getDebugInstance()->output(sprintf("[%s:] Stub <strong>%s</strong> erreicht.",
62 * Limits this object with an ObjectLimits instance
64 public function limitObject (ObjectLimits $limitInstance) {
65 ApplicationEntryPoint::app_die("".__METHOD__." reached! Stub!");