Method constructor() removed, several small fixes
[shipsimu.git] / application / ship-simu / main / structures / extended / upper / class_Bridge.php
index ec71072b447233a0b72e50c7421cb4d77239962b..239a7170835e4eed4adc86ddbf28bcf5d19aa9b8 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 Bridge extends BaseUpperStructure implements TradeableItem, ConstructableShipPart {
        // Constructor
-       private function __construct () {
+       protected function __construct () {
                // Call parent constructor
-               parent::constructor(__CLASS__);
+               parent::__construct(__CLASS__);
 
                // Debug message
                if (((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
@@ -34,7 +34,7 @@ class Bridge extends BaseUpperStructure implements TradeableItem, ConstructableS
                ));
 
                // Set description
-               $this->setPartDescr("Br&uuml;cke");
+               $this->setObjectDescription("Br&uuml;cke");
 
                // Generate unique ID number
                $this->createUniqueID();