* 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();
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;