Method constructor() removed, several small fixes
[shipsimu.git] / application / ship-simu / main / structures / extended / cabines / ship / class_LuxuryCabin.php
index 95333fb61534ee13611955098afb5f568b81927a..060060e59dbd8bb747c55a0a5c27ac8087d0c3d7 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 LuxuryCabin extends BaseCabin implements TradeableItem, ConstructableShipPart {
        // Konstruktor
-       private function __construct () {
+       protected function __construct () {
                // Call parent constructor
-               parent::constructor(__CLASS__);
+               parent::__construct(__CLASS__);
 
                // Debug message
                if (((defined('DEBUG_CABIN')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
@@ -34,7 +34,7 @@ class LuxuryCabin extends BaseCabin implements TradeableItem, ConstructableShipP
                ));
 
                // Set description
-               $this->setPartDescr("Luxuskabine");
+               $this->setObjectDescription("Luxuskabine");
 
                // Generate unique ID number
                $this->createUniqueID();