X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=application%2Fship-simu%2Fmain%2Fstructures%2Fextended%2Fcabines%2Fship%2Fclass_EconomyCabin.php;h=851c69e491af667b6e88ae31ca630b957f02e109;hp=bc1bde229e938cbe9415c6015444f5f6d832e65e;hb=42b66268af2c7d8872aca3e2fffb76d60954e9f5;hpb=ff66822b5fb6a92f5dc8af55290ecb89ec7f1aaf diff --git a/application/ship-simu/main/structures/extended/cabines/ship/class_EconomyCabin.php b/application/ship-simu/main/structures/extended/cabines/ship/class_EconomyCabin.php index bc1bde2..851c69e 100644 --- a/application/ship-simu/main/structures/extended/cabines/ship/class_EconomyCabin.php +++ b/application/ship-simu/main/structures/extended/cabines/ship/class_EconomyCabin.php @@ -1,9 +1,30 @@ + * @version 0.0.0 + * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software + * @license GNU GPL 3.0 or any newer version + * @link http://www.ship-simu.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 EconomyCabin extends BaseCabin implements ItemIsTradeable, ConstructableShipPart { // Konstruktor private function __construct () { - // Eltern-Konstruktor aufrufen + // Call parent constructor parent::constructor(__CLASS__); // Debug message @@ -14,10 +35,10 @@ class EconomyCabin extends BaseCabin implements ItemIsTradeable, ConstructableSh )); } - // Beschreibung setzen + // Set description $this->setPartDescr("Economy-Class-Kabine"); - // Unique-ID erzeugen + // Generate unique ID number $this->createUniqueID(); // Clean up a little @@ -25,8 +46,8 @@ class EconomyCabin extends BaseCabin implements ItemIsTradeable, ConstructableSh } // Economy-Kabine erstellen - public static function createEconomyCabin ($numLuxury, $numRooms, $numBeds, $dim) { - // Instanz holen + public final static function createEconomyCabin ($numLuxury, $numRooms, $numBeds, $dim) { + // Get new instance $ecoInstance = new EconomyCabin(); // Debug message