// Call parent constructor
parent::__construct($className);
- // Set object description
- $this->setObjectDescription("Allgemeines Schiff");
-
// Prepare array object for all structures
$this->createStructuresArray();
// Clean-up a little
$this->removePartInstance();
- $this->removeNumberFormaters();
}
// Array-Objekt anlegen
// Instanz im Aufbauten-Array vermerken
$this->structures->append($partInstance);
- // Debug-Meldung ausgeben
- if ((defined('DEBUG_SHIP')) || (defined('DEBUG_ALL'))) $this->debugOutput(sprintf("[%s:%d] Das Schiff <strong>%s</strong> hat das Schiffsteil <strong>%s</strong> eingebaut bekommen.",
- __CLASS__,
- __LINE__,
- $this->getShipName(),
- $partInstance->getObjectDescription()
- ));
-
// Alles klar!
return true;
}