]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/structures/extended/upper/class_Bridge.php
'public static final' is correct
[shipsimu.git] / application / ship-simu / main / structures / extended / upper / class_Bridge.php
index 7516c6695ebf6a572270877ae72525d2c164d5d2..42808e5352dccde960247b0c2d8ba2bc952c8b16 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Ship-Simu Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -27,28 +27,15 @@ class Bridge extends BaseUpperStructure implements TradeableItem, ConstructableS
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Set description
-               $this->setObjectDescription("Br&uuml;cke");
-
-               // Generate unique ID number
-               $this->generateUniqueId();
-
                // Clean up a little
-               $this->removeSystemArray();
                $this->removePartInstance();
        }
 
        // Eine Kommandobruecke erstellen
-       public final static function createBridge ($width, $height, $length) {
+       public static final function createBridge ($width, $height, $length) {
                // Get new instance
                $bridgeInstance = new Bridge();
 
-               // Debug message
-               if ((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) $bridgeInstance->getDebugInstance()->output(sprintf("[%s:%d] Eine Br&uuml;cke wird konstruiert...",
-                       __CLASS__,
-                       __LINE__
-               ));
-
                // Abmasse setzen
                $bridgeInstance->setWidth($width);
                $bridgeInstance->setHeight($height);