]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/class_BaseSimulator.php
'public static final' is correct
[shipsimu.git] / application / ship-simu / main / class_BaseSimulator.php
index 3f7daa1ae0ed026b8b6fe5bfc3767a38d000a15d..d26ea246fe2ed5e23f4165ff880bc52155a4f801 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Ship-Simu Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -46,9 +46,6 @@ class BaseSimulator extends BaseFrameworkSystem {
                // Call highest constructor
                parent::__construct($className);
 
-               // Set part description and class name
-               $this->setObjectDescription("Simulator-Basis-Einheit");
-
                // Clean up a little, dies sollte ganz zum Schluss erfolgen!
                $this->removeResizeFactorArray();
                $this->removeCurrPart();
@@ -117,22 +114,8 @@ class BaseSimulator extends BaseFrameworkSystem {
                $this->currShip = $shipInstance;
                $this->currPart = $partInstance;
 
-               if (defined('DEBUG_CORE')) $this->getDebugInstance()->output(sprintf("[%s:] Maschinenraum mit Motor <strong>%s</strong> wird fuer das Schiff <strong>%s</strong> konstruiert.",
-                       $this->__toString(),
-                       $this->getCurrPart()->getObjectDescription(),
-                       $this->currShip->getShipName()
-               ));
-
                // Passt ueberhaupt das Schiffsteil in's Schiff?
                if ($this->isShipPartSizeValid()) {
-                       // Berechnungen fuer umliegendes Objekt anpassen
-                       if (defined('DEBUG_CORE')) $this->getDebugInstance()->output(sprintf("[%s:] Das Schiffsteil <strong>%s</strong> vom Typ <strong>%s</strong> passt in das Schiff <strong>%s</strong> hinein.",
-                               $this->__toString(),
-                               $this->getCurrPart()->getObjectDescription(),
-                               $this->getCurrPart()->__toString(),
-                               $this->currShip->getShipName()
-                       ));
-
                        // Muessen die Masse angepasst werden?
                        if ($this->isResizeFactorValid()) {
                                // Neue Angaben berechnen (wir lassen etwas Lust fuer Kabelbaeume, Roehren, Maschinisten, etc.)
@@ -143,11 +126,6 @@ class BaseSimulator extends BaseFrameworkSystem {
                                // Passt dies nun immer noch?
                                if ($this->isNewSizeValid()) {
                                        // Das passt auch, dann Werte setzen und Motor-Instanz merken
-                                       if (defined('DEBUG_CORE')) $this->getDebugInstance()->output(sprintf("[%s:] Das Schiffsteil <strong>%s</strong> passt in das Schiff <strong>%s</strong> hinein.",
-                                               $this->__toString(),
-                                               $this->getObjectDescription(),
-                                               $this->currShip->getShipName()
-                                       ));
                                        $this->setWidth($this->newWidth);
                                        $this->setHeight($this->newHeight);
                                        $this->setLength($this->newLength);
@@ -171,12 +149,6 @@ class BaseSimulator extends BaseFrameworkSystem {
 
                        // Existiert ein Schiffsteil?
                        if (!is_null($this->currPart)) {
-                               // Debug-Meldung ausgeben
-                               if (defined('DEBUG_CORE')) $this->getDebugInstance()->output(sprintf("[%s:] Schiffsteil <strong>%s</strong> gefunden.",
-                                       $this->getCurrPart()->realClass,
-                                       $this->getCurrPart()->getObjectDescription()
-                               ));
-
                                // Schiffsteil-Instanz setzen
                                $this->setPartInstance($this->currPart);