X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fship-simu%2Fmain%2Fstructures%2Fextended%2Fdecks%2Fcargo%2Fclass_TruckDeck.php;h=bc710ef0c251667f480c3ea1e091a481710655c3;hb=b44e5e7347f9a1dbd49b5b47d506a4f6526caf2f;hp=99c901a02b93444b8776879801163c6b02a864a9;hpb=2a157996efd680b87b0a84cc95b91619ea6e81d9;p=shipsimu.git 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 99c901a..bc710ef 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,32 +20,26 @@ * 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 ItemIsTradeable, ConstructableShipPart { +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(); + $this->generateUniqueId(); // Clean up a little $this->removeSystemArray(); } // LKW-Deck erstellen - public static function createTruckDeck ($numDecks, $dim) { + public final static function createTruckDeck ($numDecks, $dim) { // Get new instance $truckInstance = new TruckDeck(); @@ -68,25 +62,6 @@ class TruckDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPa 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(); - } - - // Setter-Methode fuer Anzahl Decks - public final function setNumDecks ($numDecks) { - parent::setNumDecks($numDecks); - } - - // Getter-Methode fuer Anzahl Decks - public final function getNumDecks() { - return parent::getNumDecks(); - } - // Overwritten method for tradeable items public function isTradeable () { return true;