* 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
}
// LKW-Deck erstellen
- public static function createTruckDeck ($numDecks, $dim) {
+ public final static function createTruckDeck ($numDecks, $dim) {
// Get new instance
$truckInstance = new TruckDeck();
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.<br />\n",
- __CLASS__,
- __LINE__
- ));
- parent::removeNumDecks();
- }
-
// Overwritten method for tradeable items
public function isTradeable () {
return true;