2 // Konstruktionen allgemein (also Aufbauten/Unterbauten)
3 class BaseStructure extends BaseSimulator {
4 // Price of this structure
7 // Konstruktor (hier keine Exceptions aendern!)
8 private function __construct ($class) {
9 // Eltern-Konstruktor aufrufen
10 parent::constructor($class);
13 if (((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
14 $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
20 // Beschreibung setzen
21 $this->setPartDescr("Schiffsstrukturen");
24 $this->removeNumberFormaters();
27 // Konstruktor aufrufen
28 public function constructor ($class) {
29 $this->__construct($class);
33 public function setPrice ($price) {
34 $this->price = (float) $price;
38 public function getPrice () {
43 public function removePrice () {