class_LowCabin.php
Go to the documentation of this file.00001 <?php
00024 class LowCabin extends BaseCabin implements TradeableItem, ConstructableShipPart {
00025
00026 protected function __construct () {
00027
00028 parent::__construct(__CLASS__);
00029 }
00030
00031
00032 public final static function createLowCabin ($numLuxury, $numRooms, $numBeds, $dim) {
00033
00034 $lowInstance = new LowCabin();
00035
00036
00037 $lowInstance->extractDimensions($dim);
00038
00039
00040 $lowInstance->setNumCabin($numLuxury);
00041 $lowInstance->setNumRooms($numRooms);
00042 $lowInstance->setNumBeds($numBeds);
00043
00044
00045 $lowInstance->removePartInstance();
00046
00047
00048 return $lowInstance;
00049 }
00050
00051
00052 public function isTradeable () {
00053 return true;
00054 }
00055 }
00056
00057
00058 ?>