getter, setter are all final; several code clean-ups
[shipsimu.git] / application / ship-simu / main / structures / extended / class_BaseUpperStructure.php
1 <?php
2 // Super structures (renamed to UpperStructure to avoid mixing it with super classes
3 class BaseUpperStructure extends BaseStructure {
4         /**
5          * Constructor for all super structures on a ship
6          */
7         private function __construct ($class) {
8                 // Call parent constructor
9                 parent::constructor($class);
10
11                 // Debug message
12                 if (((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
13                         $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
14                                 __CLASS__,
15                                 __LINE__
16                         ));
17                 }
18
19                 // Set description
20                 $this->setPartDescr("Aufbauten");
21         }
22
23         /**
24          * Call new constructor
25          */
26         function constructor ($class) {
27                 $this->__construct($class);
28         }
29
30         /**
31          * Stub!
32          */
33         public function saveObjectToDatabase () {
34                 $this->getDebugInstance()->output(sprintf("[%s:] Stub <strong>%s</strong> erreicht.",
35                         $this->__toString(),
36                         __FUNCTION__
37                 ));
38         }
39
40         /**
41          * Limits this object with an ObjectLimits instance
42          */
43         public function limitObject (ObjectLimits $limitInstance) {
44                 ApplicationEntryPoint::app_die("".__METHOD__." reached! Stub!");
45         }
46 }
47
48 // [EOF]
49 ?>