]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/structures/extended/cabines/ship/class_LuxuryCabin.php
final added, code clean-ups
[shipsimu.git] / application / ship-simu / main / structures / extended / cabines / ship / class_LuxuryCabin.php
index 25c0dd4a7c6fadf42968f88988529cabe3393e55..95333fb61534ee13611955098afb5f568b81927a 100644 (file)
@@ -21,7 +21,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-class LuxuryCabin extends BaseCabin implements ItemIsTradeable, ConstructableShipPart {
+class LuxuryCabin extends BaseCabin implements TradeableItem, ConstructableShipPart {
        // Konstruktor
        private function __construct () {
                // Call parent constructor
@@ -44,7 +44,7 @@ class LuxuryCabin extends BaseCabin implements ItemIsTradeable, ConstructableShi
        }
 
        // Eine Luxuskabine erstellen
-       public static function createLuxuryCabin ($numLuxury, $numRooms, $numBeds, $dim) {
+       public final static function createLuxuryCabin ($numLuxury, $numRooms, $numBeds, $dim) {
                // Get new instance
                $luxuryInstance = new LuxuryCabin();
 
@@ -69,36 +69,6 @@ class LuxuryCabin extends BaseCabin implements ItemIsTradeable, ConstructableShi
                return $luxuryInstance;
        }
 
-       // Loesch-Methode fuer Anzahl Betten
-       public function removeNumBeds() {
-               if ((defined('DEBUG_CABIN')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Anzahl Betten gel&ouml;scht.<br />\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&ouml;scht.<br />\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&auml;ume gel&ouml;scht.<br />\n",
-                       __CLASS__,
-                       __LINE__
-               ));
-               unset($this->numRooms);
-               parent::removeNumRooms();
-       }
-
        // Overwritten method for tradeable items
        public function isTradeable () {
                return true;