Method constructor() removed, several small fixes
[shipsimu.git] / application / ship-simu / main / structures / extended / decks / cargo / class_TrainDeck.php
index 2c9bcbeced6c6a8d7aa6a4d64418a788296a89c7..d464f77bcea9d5c405ed8d987e219bc09828ce54 100644 (file)
  * 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 <http://www.gnu.org/licenses/>.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 class TrainDeck extends BaseDeck implements TradeableItem, ConstructableShipPart {
        // Konstruktor
-       private function __construct () {
+       protected function __construct () {
                // Call parent constructor
-               parent::constructor(__CLASS__);
+               parent::__construct(__CLASS__);
 
                // Debug message
                if (((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
@@ -34,7 +34,7 @@ class TrainDeck extends BaseDeck implements TradeableItem, ConstructableShipPart
                ));
 
                // Set description
-               $this->setPartDescr("Zug-Deck");
+               $this->setObjectDescription("Zug-Deck");
 
                // Generate unique ID number
                $this->createUniqueID();