2 // Der Maschinenraum ist etwas anderes als eine Kabine, etc. !
3 // Daher hat er eine eigene Klasse
4 class MaschineRoom extends BaseShipPart {
6 private function __construct () {
7 // Call parent constructor
8 parent::constructor(__CLASS__);
11 if (((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
12 $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
19 $this->setPartDescr("Maschinenraum");
21 // Generate unique ID number
22 $this->createUniqueID();
25 $this->removeSystemArray();
28 // Maschinenraum erstellen
29 public static function createMaschineRoom () {
31 $roomInstance = new MaschineRoom();
34 if ((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) $roomInstance->getDebugInstance()->output(sprintf("[%s:%d] Ein Maschinenraum wird konstruiert.<br />\n",
39 // Umrechnungsfaktoren setzen
40 $roomInstance->setResizeFactorElement('width' , 1.3);
41 $roomInstance->setResizeFactorElement('height', 1.8);
42 $roomInstance->setResizeFactorElement('length', 1.3);
44 // Instanz zurueckgeben
51 public function saveObjectToDatabase () {
52 $this->getDebugInstance()->output(sprintf("[%s:] Stub <strong>%s</strong> erreicht.",
59 * Limits this object with an ObjectLimits instance
61 public function limitObject (ObjectLimits $limitInstance) {
62 ApplicationEntryPoint::app_die("".__METHOD__." reached! Stub!");