X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=application%2Fship-simu%2Fmain%2Fstructures%2Fextended%2Fupper%2Fclass_Bridge.php;h=1c3b674e0004813a09f10e8ee2f0830666a6cd3d;hb=4f70843ae8428f051d70ccff5bb43fc4c03dda8d;hp=1cbad177c4f1e7e2c387a59b7c9820c39afeaefa;hpb=55b327a3f5f2fe1d244532e07be7444e94b2a768;p=shipsimu.git diff --git a/application/ship-simu/main/structures/extended/upper/class_Bridge.php b/application/ship-simu/main/structures/extended/upper/class_Bridge.php index 1cbad17..1c3b674 100644 --- a/application/ship-simu/main/structures/extended/upper/class_Bridge.php +++ b/application/ship-simu/main/structures/extended/upper/class_Bridge.php @@ -2,11 +2,11 @@ /** * The control bridge of the ship * - * @author Roland Haeder + * @author Roland Haeder * @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ü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ücke wird konstruiert...
\n", - __CLASS__, - __LINE__ - )); - // Abmasse setzen $bridgeInstance->setWidth($width); $bridgeInstance->setHeight($height);