X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fship-simu%2Fmain%2Fdrives%2Fmotor%2Fclass_Motor.php;h=77e2ba9b43148fd94f5ffc92fc70ab555cceec93;hb=d2ab4e266a9ba039dc587ffa753a55328ca34f4a;hp=9e347a849a38ada7bab07e29a8da16afdaae9bb4;hpb=243934eb16b793ebd8cb0e43a968e17175ec5a75;p=shipsimu.git diff --git a/application/ship-simu/main/drives/motor/class_Motor.php b/application/ship-simu/main/drives/motor/class_Motor.php index 9e347a8..77e2ba9 100644 --- a/application/ship-simu/main/drives/motor/class_Motor.php +++ b/application/ship-simu/main/drives/motor/class_Motor.php @@ -19,24 +19,16 @@ * 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 . + * along with this program. If not, see . */ class Motor extends BaseDrive implements TradeableItem, ConstructableShipPart { // Constructor - private function __construct() { + protected function __construct() { // Call parent constructor - parent::constructor(__CLASS__); - - // Debug message - if (((defined('DEBUG_DRIVE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) { - $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.
\n", - __CLASS__, - __LINE__ - )); - } + parent::__construct(__CLASS__); // Set description - $this->setPartDescr("Namenloser Motor"); + $this->setObjectDescription("Namenloser Motor"); // Generate unique ID number $this->createUniqueID(); @@ -58,7 +50,7 @@ class Motor extends BaseDrive implements TradeableItem, ConstructableShipPart { )); // Beschreibung und Abmasse setzen - $motorInstance->setPartDescr($descr); + $motorInstance->setObjectDescription($descr); $motorInstance->setWidth($w); $motorInstance->setHeight($h); $motorInstance->setLength($l);