X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=application%2Fship-simu%2Fmain%2Fparts%2Fmaschineroom%2Fclass_MaschineRoom.php;h=bcd7b30ba00f5a2f25251ecad2a803372eb48a61;hp=f2ef225f7b1c4d19a18cb7638a17f1a113b09523;hb=4f70843ae8428f051d70ccff5bb43fc4c03dda8d;hpb=a76d51b4096b47436e269156547f02713d95af5b diff --git a/application/ship-simu/main/parts/maschineroom/class_MaschineRoom.php b/application/ship-simu/main/parts/maschineroom/class_MaschineRoom.php index f2ef225..bcd7b30 100644 --- a/application/ship-simu/main/parts/maschineroom/class_MaschineRoom.php +++ b/application/ship-simu/main/parts/maschineroom/class_MaschineRoom.php @@ -1,41 +1,38 @@ + * @version 0.0.0 + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Ship-Simu Developer Team + * @license GNU GPL 3.0 or any newer version + * @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 + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ class MaschineRoom extends BaseShipPart { // Constructor - private function __construct () { + protected function __construct () { // Call parent constructor - parent::constructor(__CLASS__); - - // Debug message - if (((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) { - $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.
\n", - __CLASS__, - __LINE__ - )); - } - - // Set description - $this->setPartDescr("Maschinenraum"); - - // Generate unique ID number - $this->createUniqueID(); - - // Clean up a little - $this->removeSystemArray(); + parent::__construct(__CLASS__); } // Maschinenraum erstellen - public static function createMaschineRoom () { + public static final function createMaschineRoom () { // Get new instance $roomInstance = new MaschineRoom(); - // Debug message - if ((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) $roomInstance->getDebugInstance()->output(sprintf("[%s:%d] Ein Maschinenraum wird konstruiert.
\n", - __CLASS__, - __LINE__ - )); - // Umrechnungsfaktoren setzen $roomInstance->setResizeFactorElement('width' , 1.3); $roomInstance->setResizeFactorElement('height', 1.8); @@ -44,23 +41,6 @@ class MaschineRoom extends BaseShipPart { // Instanz zurueckgeben return $roomInstance; } - - /** - * 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]