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 // Call parent constructor
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",
21 $this->setPartDescr("Schiffsstrukturen");
24 $this->removeNumberFormaters();
28 * Calls the private constructor
30 * @param $class The class' name
33 public function constructor ($class) {
34 $this->__construct($class);
38 public final function setPrice ($price) {
39 $this->price = (float) $price;
43 public final function getPrice () {
48 public function removePrice () {