]> git.mxchange.org Git - shipsimu.git/blobdiff - ship-simu/application/ship-simu/main/constructions/class_BaseConstruction.php
Initial import of current development status
[shipsimu.git] / ship-simu / application / ship-simu / main / constructions / class_BaseConstruction.php
diff --git a/ship-simu/application/ship-simu/main/constructions/class_BaseConstruction.php b/ship-simu/application/ship-simu/main/constructions/class_BaseConstruction.php
new file mode 100644 (file)
index 0000000..16ef468
--- /dev/null
@@ -0,0 +1,39 @@
+<?php
+// Die abstrakte Bauten-Klasse
+class BaseConstruction extends BaseSimulator {
+       // Tiefgang fuer z.B. Trockdocks
+       private $draught = 0;
+
+       // Konstruktor
+       private function __construct ($class) {
+               // Eltern-Konstrutor aufrufen
+               parent::constructor($class);
+
+               // Debug message
+               if ((defined('DEBUG_CORE')) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:] Konstruktor erreicht.<br />\n",
+                       $this->__toString()
+               ));
+
+               // Beschreibung setzen
+               $this->setPartDescr("Namenlose Landkonstruktion");
+
+               // Etwas aufraeumen (brauchen wir hier nicht)
+               $this->removeNumberFormaters();
+       }
+
+       // Konstruktor aufrufen
+       public function constructor ($class) {
+               $this->__construct($class);
+       }
+
+       // Tiefgang entfernen
+       public function removeDraught () {
+               if (defined('DEBUG_CORE')) $this->getDebugInstance()->output(sprintf("[%s:] Tiefgang wird entfernt.<br />\n",
+                       $this->__toString()
+               ));
+               unset($this->draught);
+       }
+}
+
+// [EOF]
+?>