X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=application%2Fship-simu%2Fmain%2Fclass_BaseSimulator.php;h=db7a1f2319e91d65ccf49540a059abda6e728bf6;hp=cb29c92f110801a60eb3dcebdc301c2fb6f9f297;hb=efba981c9bf18c733dfde945b09111ff4b6007ce;hpb=ed7ca64368d512574efeda0f6b8d8e970d41aa1d diff --git a/application/ship-simu/main/class_BaseSimulator.php b/application/ship-simu/main/class_BaseSimulator.php index cb29c92..db7a1f2 100644 --- a/application/ship-simu/main/class_BaseSimulator.php +++ b/application/ship-simu/main/class_BaseSimulator.php @@ -117,7 +117,7 @@ class BaseSimulator extends BaseFrameworkSystem { $this->currShip = $shipInstance; $this->currPart = $partInstance; - if (defined('DEBUG_CORE')) $this->getDebugInstance()->output(sprintf("[%s:] Maschinenraum mit Motor %s wird fuer das Schiff %s konstruiert.", + if (defined('DEBUG_CORE')) $this->debugOutput(sprintf("[%s:] Maschinenraum mit Motor %s wird fuer das Schiff %s konstruiert.", $this->__toString(), $this->getCurrPart()->getObjectDescription(), $this->currShip->getShipName() @@ -126,7 +126,7 @@ class BaseSimulator extends BaseFrameworkSystem { // 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 %s vom Typ %s passt in das Schiff %s hinein.", + if (defined('DEBUG_CORE')) $this->debugOutput(sprintf("[%s:] Das Schiffsteil %s vom Typ %s passt in das Schiff %s hinein.", $this->__toString(), $this->getCurrPart()->getObjectDescription(), $this->getCurrPart()->__toString(), @@ -143,7 +143,7 @@ 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 %s passt in das Schiff %s hinein.", + if (defined('DEBUG_CORE')) $this->debugOutput(sprintf("[%s:] Das Schiffsteil %s passt in das Schiff %s hinein.", $this->__toString(), $this->getObjectDescription(), $this->currShip->getShipName() @@ -172,7 +172,7 @@ 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 %s gefunden.", + if (defined('DEBUG_CORE')) $this->debugOutput(sprintf("[%s:] Schiffsteil %s gefunden.", $this->getCurrPart()->realClass, $this->getCurrPart()->getObjectDescription() ));