]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/structures/extended/decks/cargo/class_TruckDeck.php
Several fixes for older tests
[shipsimu.git] / application / ship-simu / main / structures / extended / decks / cargo / class_TruckDeck.php
index 99c901a02b93444b8776879801163c6b02a864a9..ccbe596810d1d741d1ee6896442a180df4b7e91f 100644 (file)
@@ -22,7 +22,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-class TruckDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPart {
+class TruckDeck extends BaseDeck implements TradeableItem, ConstructableShipPart {
        // Konstruktor
        private function __construct () {
                // Call parent constructor
@@ -45,7 +45,7 @@ class TruckDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPa
        }
 
        // LKW-Deck erstellen
-       public static function createTruckDeck ($numDecks, $dim) {
+       public final static function createTruckDeck ($numDecks, $dim) {
                // Get new instance
                $truckInstance = new TruckDeck();
 
@@ -77,16 +77,6 @@ class TruckDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPa
                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;