]> git.mxchange.org Git - shipsimu.git/blob - application/ship-simu/main/constructions/class_BaseConstruction.php
8edd23d33476c3593d587a60d3d857327b28606a
[shipsimu.git] / application / ship-simu / main / constructions / class_BaseConstruction.php
1 <?php
2 // Die abstrakte Bauten-Klasse
3 class BaseConstruction extends BaseSimulator {
4         // Tiefgang fuer z.B. Trockdocks
5         private $draught = 0;
6
7         // Konstruktor
8         private function __construct ($class) {
9                 // Eltern-Konstrutor aufrufen
10                 parent::constructor($class);
11
12                 // Debug message
13                 if ((defined('DEBUG_CORE')) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:] Konstruktor erreicht.<br />\n",
14                         $this->__toString()
15                 ));
16
17                 // Set description
18                 $this->setPartDescr("Namenlose Landkonstruktion");
19
20                 // Clean up a little
21                 $this->removeNumberFormaters();
22         }
23
24         /**
25          * Calls the private constructor
26          *
27          * @param       $class  The class' name
28          * @return      void
29          */
30         public function constructor ($class) {
31                 $this->__construct($class);
32         }
33
34         // Tiefgang entfernen
35         public function removeDraught () {
36                 if (defined('DEBUG_CORE')) $this->getDebugInstance()->output(sprintf("[%s:] Tiefgang wird entfernt.<br />\n",
37                         $this->__toString()
38                 ));
39                 unset($this->draught);
40         }
41 }
42
43 // [EOF]
44 ?>