X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=application%2Fship-simu%2Fmain%2Fstructures%2Fextended%2Fcabines%2Fship%2Fclass_LowCabin.php;h=335477b7c80d73bfa20b101f2cb4ac3a518e6332;hp=b1707ab4931b73e4e3feb30b85c31e9f6739c137;hb=55b327a3f5f2fe1d244532e07be7444e94b2a768;hpb=a76d51b4096b47436e269156547f02713d95af5b
diff --git a/application/ship-simu/main/structures/extended/cabines/ship/class_LowCabin.php b/application/ship-simu/main/structures/extended/cabines/ship/class_LowCabin.php
index b1707ab..335477b 100644
--- a/application/ship-simu/main/structures/extended/cabines/ship/class_LowCabin.php
+++ b/application/ship-simu/main/structures/extended/cabines/ship/class_LowCabin.php
@@ -1,29 +1,44 @@
+ * @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 LowCabin extends BaseCabin implements TradeableItem, ConstructableShipPart {
// Konstruktor
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
-
- // Debug message
- if (((defined('DEBUG_CABIN')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.
\n",
- __CLASS__,
- __LINE__
- ));
+ parent::__construct(__CLASS__);
// Set description
- $this->setPartDescr("2Star-Class-Kabine");
+ $this->setObjectDescription("2Star-Class-Kabine");
// Generate unique ID number
- $this->createUniqueID();
+ $this->generateUniqueId();
// Clean up a little
$this->removeSystemArray();
}
// 2-Sterne-Klasse erstellen
- public static function createLowCabin ($numLuxury, $numRooms, $numBeds, $dim) {
+ public final static function createLowCabin ($numLuxury, $numRooms, $numBeds, $dim) {
// Get new instance
$lowInstance = new LowCabin();
@@ -48,36 +63,6 @@ class LowCabin extends BaseCabin implements ItemIsTradeable, ConstructableShipPa
return $lowInstance;
}
- // Loesch-Methode fuer Anzahl Betten
- public function removeNumBeds() {
- if ((defined('DEBUG_CABIN')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Anzahl Betten gelöscht.
\n",
- __CLASS__,
- __LINE__
- ));
- unset($this->numBeds);
- parent::removeNumBeds();
- }
-
- // Loesch-Methode fuer Anzahl Kabinen
- public function removeNumCabin() {
- if ((defined('DEBUG_CABIN')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Anzahl Kabinen gelöscht.
\n",
- __CLASS__,
- __LINE__
- ));
- unset($this->numCabin);
- parent::removeNumCabin();
- }
-
- // Loesch-Methode fuer Anzahl Raeume
- public function removeNumRooms() {
- if ((defined('DEBUG_CABIN')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Anzahl Räume gelöscht.
\n",
- __CLASS__,
- __LINE__
- ));
- unset($this->numRooms);
- parent::removeNumRooms();
- }
-
// Overwritten method for tradeable items
public function isTradeable () {
return true;