00001 <?php 00024 class EconomyCabin extends BaseCabin implements TradeableItem, ConstructableShipPart { 00025 // Konstruktor 00026 protected function __construct () { 00027 // Call parent constructor 00028 parent::__construct(__CLASS__); 00029 } 00030 00031 // Economy-Kabine erstellen 00032 public final static function createEconomyCabin ($numLuxury, $numRooms, $numBeds, $dim) { 00033 // Get new instance 00034 $ecoInstance = new EconomyCabin(); 00035 00036 // Abmasse extrahieren 00037 $ecoInstance->extractDimensions($dim); 00038 00039 // Den Rest auch setzen 00040 $ecoInstance->setNumCabin($numLuxury); 00041 $ecoInstance->setNumRooms($numRooms); 00042 $ecoInstance->setNumBeds($numBeds); 00043 00044 // Nicht noetig! 00045 $ecoInstance->removePartInstance(); 00046 00047 // Instanz zurueckgeben 00048 return $ecoInstance; 00049 } 00050 00051 // Overwritten method for tradeable items 00052 public function isTradeable () { 00053 return true; 00054 } 00055 } 00056 00057 // [EOF] 00058 ?>
1.5.6