class_TruckDeck.php

Go to the documentation of this file.
00001 <?php
00025 class TruckDeck extends BaseDeck implements TradeableItem, ConstructableShipPart {
00026         // Konstruktor
00027         protected function __construct () {
00028                 // Call parent constructor
00029                 parent::__construct(__CLASS__);
00030         }
00031 
00032         // LKW-Deck erstellen
00033         public final static function createTruckDeck ($numDecks, $dim) {
00034                 // Get new instance
00035                 $truckInstance = new TruckDeck();
00036 
00037                 // Abmasse extrahieren
00038                 $truckInstance->extractDimensions($dim);
00039 
00040                 // Andere Daten uebetragen
00041                 $truckInstance->setNumDecks($numDecks);
00042 
00043                 // Nicht noetige Instanz
00044                 $truckInstance->removePartInstance();
00045 
00046                 // Instanz zurueckliefern
00047                 return $truckInstance;
00048         }
00049 
00050         // Overwritten method for tradeable items
00051         public function isTradeable () {
00052                 return true;
00053         }
00054 }
00055 
00056 // [EOF]
00057 ?>

Generated on Mon Dec 8 01:06:44 2008 for Ship-Simulator by  doxygen 1.5.6