3 * A truck and bus decks. Also other vehicle may be put in here if they don't
4 * match into the car deck.
6 * @author Roland Haeder <webmaster@ship-simu.org>
8 * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software
9 * @license GNU GPL 3.0 or any newer version
10 * @link http://www.ship-simu.org
12 * This program is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <http://www.gnu.org/licenses/>.
25 class TruckDeck extends BaseDeck implements TradeableItem, ConstructableShipPart {
27 protected function __construct () {
28 // Call parent constructor
29 parent::__construct(__CLASS__);
32 $this->setObjectDescription("LKW-Deck");
34 // Generate unique ID number
35 $this->createUniqueID();
38 $this->removeSystemArray();
42 public final static function createTruckDeck ($numDecks, $dim) {
44 $truckInstance = new TruckDeck();
47 if ((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) $truckInstance->getDebugInstance()->output(sprintf("[%s:%d] Ein LKW-Deck wird konstruiert...<br />\n",
52 // Abmasse extrahieren
53 $truckInstance->extractDimensions($dim);
55 // Andere Daten uebetragen
56 $truckInstance->setNumDecks($numDecks);
58 // Nicht noetige Instanz
59 $truckInstance->removePartInstance();
61 // Instanz zurueckliefern
62 return $truckInstance;
65 // Overwritten method for tradeable items
66 public function isTradeable () {
71 * Limits this object with an ObjectLimits instance
73 public function limitObject (ObjectLimits $limitInstance) {
74 ApplicationEntryPoint::app_die("".__METHOD__." reached! Stub!");