]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/structures/extended/upper/class_Bridge.php
More renamed
[shipsimu.git] / application / ship-simu / main / structures / extended / upper / class_Bridge.php
index bbd873b892103f388d967a886b0da0648c190daa..1c3b674e0004813a09f10e8ee2f0830666a6cd3d 100644 (file)
@@ -2,11 +2,11 @@
 /**
  * The control bridge of the ship
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @author             Roland Haeder <webmaster@shipsimu.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
+ * @link               http://www.shipsimu.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -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->createUniqueID();
-
                // 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...<br />\n",
-                       __CLASS__,
-                       __LINE__
-               ));
-
                // Abmasse setzen
                $bridgeInstance->setWidth($width);
                $bridgeInstance->setHeight($height);
@@ -62,23 +49,6 @@ class Bridge extends BaseUpperStructure implements TradeableItem, ConstructableS
        public function isTradeable () {
                return true;
        }
-
-       /**
-        * Stub!
-        */
-       public function saveObjectToDatabase () {
-               $this->getDebugInstance()->output(sprintf("[%s:] Stub <strong>%s</strong> erreicht.",
-                       $this->__toString(),
-                       __FUNCTION__
-               ));
-       }
-
-       /**
-        * Limits this object with an ObjectLimits instance
-        */
-       public function limitObject (ObjectLimits $limitInstance) {
-               ApplicationEntryPoint::app_die("".__METHOD__." reached! Stub!");
-       }
 }
 
 // [EOF]