2 // Super structures (renamed to UpperStructure to avoid mixing it with super classes
3 class BaseUpperStructure extends BaseStructure {
5 * Constructor for all super structures on a ship
7 private function __construct ($class) {
8 // Eltern-Konstruktor aufrufen
9 parent::constructor($class);
12 if (((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
13 $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
19 // Beschreibung setzen
20 $this->setPartDescr("Aufbauten");
23 if ($class == __CLASS__) {
24 $this->removeSystemArray();
29 * Call new constructor
31 function constructor ($class) {
32 $this->__construct($class);
36 * Creates an upper(=super) structure
38 public static function createBaseUpperStructure () {
40 $upperInstance = new BaseUpperStructure (__CLASS__);
43 if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) {
44 $upperInstance->getDebugInstance()->output(sprintf("[%s:%d] Aufbauten wird konstruiert.<br />\n",
51 $upperInstance->createUniqueID();
54 return $upperInstance;
60 public function saveObjectToDatabase () {
61 $this->getDebugInstance()->output(sprintf("[%s:] Stub <strong>%s</strong> erreicht.",
68 * Limits this object with an ObjectLimits instance
70 public function limitObject (ObjectLimits $limitInstance) {
71 ApplicationEntryPoint::app_die("".__METHOD__." reached! Stub!");