3 // Dieses kann z.B. der Maschinenraum, die Bruecke, Kabinen, Laderaum, etc. sein
4 class BaseShipPart extends BaseSimulator {
5 // Price of this ship part
9 private function __construct($class) {
10 // Eltern-Konstruktor aufrufen
11 parent::constructor($class);
14 if (((defined('DEBUG_SHIPPART')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
15 $this->getDebugInstance()->output(sprintf("[%s:%d:] Kontruktor erreicht.<br />\n",
22 $this->setPartDescr("Schiffsteil");
25 $this->removeNumberFormaters();
28 // Konstruktor aufrufen
29 public function constructor ($class) {
30 $this->__construct($class);
34 public function setPrice ($price) {
35 $this->price = (float) $price;
39 public function getPrice () {
44 public function removePrice () {