class_LowCabin.php

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

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