Method constructor() removed, several small fixes
[shipsimu.git] / application / ship-simu / main / structures / extended / decks / cargo / class_CarDeck.php
index ca4a9ddbcc7f42f82ad48252fe1660711b1db0ce..cf3289d64ecd4766f0c3e474c0c36ed8165c0d18 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 CarDeck 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 CarDeck extends BaseDeck implements TradeableItem, ConstructableShipPart {
                ));
 
                // Set description
-               $this->setPartDescr("Autodeck");
+               $this->setObjectDescription("Autodeck");
 
                // Generate unique ID number
                $this->createUniqueID();