X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=application%2Fship-simu%2Fmain%2Fstructures%2Fextended%2Fdecks%2Fcargo%2Fclass_TruckDeck.php;h=64c4b57de0770e79a96662a881e9d336696a36b3;hp=ccbe596810d1d741d1ee6896442a180df4b7e91f;hb=d2ab4e266a9ba039dc587ffa753a55328ca34f4a;hpb=243934eb16b793ebd8cb0e43a968e17175ec5a75 diff --git a/application/ship-simu/main/structures/extended/decks/cargo/class_TruckDeck.php b/application/ship-simu/main/structures/extended/decks/cargo/class_TruckDeck.php index ccbe596..64c4b57 100644 --- a/application/ship-simu/main/structures/extended/decks/cargo/class_TruckDeck.php +++ b/application/ship-simu/main/structures/extended/decks/cargo/class_TruckDeck.php @@ -20,22 +20,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 TruckDeck extends BaseDeck implements TradeableItem, ConstructableShipPart { // Konstruktor - private function __construct () { + protected function __construct () { // Call parent constructor - parent::constructor(__CLASS__); - - // Debug message - if (((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.
\n", - __CLASS__, - __LINE__ - )); + parent::__construct(__CLASS__); // Set description - $this->setPartDescr("LKW-Deck"); + $this->setObjectDescription("LKW-Deck"); // Generate unique ID number $this->createUniqueID(); @@ -68,15 +62,6 @@ class TruckDeck extends BaseDeck implements TradeableItem, ConstructableShipPart return $truckInstance; } - // Deckanzahl entfernen - public function removeNumDecks() { - if ((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Anzahl Decks wurde gelöscht.
\n", - __CLASS__, - __LINE__ - )); - parent::removeNumDecks(); - } - // Overwritten method for tradeable items public function isTradeable () { return true;