]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/structures/extended/decks/class_BaseDeck.php
getter, setter are all final; several code clean-ups
[shipsimu.git] / application / ship-simu / main / structures / extended / decks / class_BaseDeck.php
index 30b6978dfa4e10304931c6b9e5219da918bef0f5..e72f96feacf0e7a4c26fe9a9c7d1f89d1f4ca5e4 100644 (file)
@@ -1,9 +1,9 @@
 <?php
-// Decks for cargo
+// General (base) deck
 class BaseDeck extends BaseDeckStructure {
        /**
-       * Constructor for cargo decks in general
-       */
+        * Constructor for cargo decks in general
+        */
        private function __construct ($class) {
                // Call parent constructor
                parent::constructor($class);
@@ -15,37 +15,19 @@ class BaseDeck extends BaseDeckStructure {
                ));
 
                // Set description
-               $this->setPartDescr("Deck");
-
-               // Maybe clean up?
-               if ($class == __CLASS__) {
-                       $this->removeSystemArray();
-               }
+               $this->setPartDescr("Allgemeines Deck");
        }
 
-       // Ruft nur den privaten Konstruktor auf
+       /**
+        * Calls the private constructor
+        *
+        * @param       $class  The class' name
+        * @return      void
+        */
        public function constructor ($class) {
                $this->__construct($class);
        }
 
-       // Ein allgemeines Deck erstellen
-       public static function createBaseDeck () {
-               // Instanz holen
-               $deckInstance = new BaseDeck(__CLASS__);
-
-               // Debug message
-               if ((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) $deckInstance->getDebugInstance()->output(sprintf("[%s:%d] Ein allgemeines Deck wird konstruiert.<br />\n",
-                       __CLASS__,
-                       __LINE__
-               ));
-
-               // Unique-ID setzen
-               $deckInstance->createUniqueID();
-
-               // Instanz zurueckgeben
-               return $deckInstance;
-       }
-
        /**
         * Stub!
         */