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