Translations to english and debug messages removed (missing files added)
authorRoland Häder <roland@mxchange.org>
Wed, 30 Apr 2008 12:20:59 +0000 (12:20 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 30 Apr 2008 12:20:59 +0000 (12:20 +0000)
33 files changed:
application/ship-simu/main/class_BasePersonell.php
application/ship-simu/main/class_BaseSimulator.php
application/ship-simu/main/class_Merchant.php
application/ship-simu/main/class_WorksContract.php
application/ship-simu/main/companies/class_ShippingCompany.php
application/ship-simu/main/constructions/berths/class_Berth.php
application/ship-simu/main/constructions/class_BaseConstruction.php
application/ship-simu/main/constructions/docks/class_DryDock.php
application/ship-simu/main/constructions/harbors/class_Harbor.php
application/ship-simu/main/constructions/terminals/class_Terminal.php
application/ship-simu/main/constructions/yards/class_Shipyard.php
application/ship-simu/main/drives/class_BaseDrive.php
application/ship-simu/main/drives/motor/class_Motor.php
application/ship-simu/main/parts/class_BaseShipPart.php
application/ship-simu/main/parts/maschineroom/class_MaschineRoom.php
application/ship-simu/main/personell/class_SimulatorPersonell.php
application/ship-simu/main/personell/company/class_CompanyEmployee.php
application/ship-simu/main/ships/class_BaseShip.php
application/ship-simu/main/ships/passenger/class_PassengerShip.php
application/ship-simu/main/structures/class_BaseStructure.php
application/ship-simu/main/structures/extended/cabines/class_BaseCabin.php
application/ship-simu/main/structures/extended/cabines/ship/class_EconomyCabin.php
application/ship-simu/main/structures/extended/cabines/ship/class_LowCabin.php
application/ship-simu/main/structures/extended/cabines/ship/class_LuxuryCabin.php
application/ship-simu/main/structures/extended/cabines/ship/class_PremierCabin.php
application/ship-simu/main/structures/extended/class_BaseCabinStructure.php
application/ship-simu/main/structures/extended/class_BaseDeckStructure.php
application/ship-simu/main/structures/extended/class_BaseUpperStructure.php
application/ship-simu/main/structures/extended/decks/cargo/class_CarDeck.php
application/ship-simu/main/structures/extended/decks/cargo/class_TrainDeck.php
application/ship-simu/main/structures/extended/decks/cargo/class_TruckDeck.php
application/ship-simu/main/structures/extended/decks/class_BaseDeck.php
application/ship-simu/main/structures/extended/upper/class_Bridge.php

index 744c160..5eb553b 100644 (file)
@@ -52,9 +52,6 @@ class BasePersonell extends BaseFrameworkSystem implements Personellizer {
                // Call parent constructor
                parent::__construct($class);
 
-               // Debug message
-               if ((defined('DEBUG_PERSONELL')) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output("[PersonellBase:] Konstruktor erreicht.<br />\n");
-
                // Set description
                $this->setObjectDescription("Personal");
        }
index 0ca7a91..7910c5e 100644 (file)
@@ -46,10 +46,6 @@ class BaseSimulator extends BaseFrameworkSystem {
                // Call highest constructor
                parent::__construct($class);
 
-               if ((defined('DEBUG_CORE')) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:] Konstruktor erreicht.<br />\n",
-                       $this->__toString()
-               ));
-
                // Set part description and class name
                $this->setObjectDescription("Simulator-Basis-Einheit");
 
index ce65713..0d4ff10 100644 (file)
@@ -36,14 +36,6 @@ class Merchant extends BaseFrameworkSystem {
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Debug message
-               if (((defined('DEBUG_MERCHANT')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
-                       $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                               __CLASS__,
-                               __LINE__
-                       ));
-               }
-
                // Set description
                $this->setObjectDescription("H&auml;ndler");
 
index 96f1bca..fdcc74a 100644 (file)
@@ -45,14 +45,6 @@ class WorksContract extends BaseFrameworkSystem implements SignableContract {
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Debug message
-               if (((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
-                       $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                               __CLASS__,
-                               __LINE__
-                       ));
-               }
-
                // Set description
                $this->setObjectDescription("Bauvertrag");
 
index b93efdb..1dba168 100644 (file)
@@ -71,14 +71,6 @@ class ShippingCompany extends BaseSimulator implements Customer, ContractPartner
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Debug message
-               if (((defined('DEBUG_COMPANY')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
-                       $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                               __CLASS__,
-                               __LINE__
-                       ));
-               }
-
                // Set description
                $this->setObjectDescription("Reederei");
 
index b8bd26c..160b7bf 100644 (file)
@@ -30,13 +30,6 @@ class Berth extends BaseConstruction {
 
        // Konstruktor
        protected function __construct () {
-               if (((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
-                       $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                               __CLASS__,
-                               __LINE__
-                       ));
-               }
-
                // Call parent constructor
                parent::__construct(__CLASS__);
 
index 24beedd..60974e0 100644 (file)
@@ -30,11 +30,6 @@ class BaseConstruction extends BaseSimulator {
                // Eltern-Konstrutor aufrufen
                parent::__construct($class);
 
-               // Debug message
-               if ((defined('DEBUG_CORE')) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:] Konstruktor erreicht.<br />\n",
-                       $this->__toString()
-               ));
-
                // Set description
                $this->setObjectDescription("Namenlose Landkonstruktion");
 
index 879786d..5209b56 100644 (file)
@@ -27,8 +27,6 @@ class DryDock extends BaseConstruction {
 
        // Konstruktor
        protected function __construct () {
-               if (((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output("[DryDock:] Konstruktor erreicht.<br />\n");
-
                // Call parent constructor
                parent::__construct(__CLASS__);
 
index e414118..3bdc297 100644 (file)
@@ -39,9 +39,6 @@ class Harbor extends BaseConstruction {
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Debug message
-               if (((defined('DEBUG_HARBOR')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output("[Harbor:] Konstruktor erreicht.<br />\n");
-
                // Set description
                $this->setObjectDescription("Hafen");
 
index 6ec76c2..ad0a631 100644 (file)
@@ -27,13 +27,6 @@ class Terminal extends BaseConstruction {
 
        // Konstruktor
        protected function __construct () {
-               if (((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
-                       $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                               __CLASS__,
-                               __LINE__
-                       ));
-               }
-
                // Call parent constructor
                parent::__construct(__CLASS__);
 
index 2908484..61d2500 100644 (file)
@@ -49,14 +49,6 @@ class Shipyard extends BaseConstruction {
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Debug message
-               if (((defined('DEBUG_SHIPYARD')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
-                       $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                               __CLASS__,
-                               __LINE__
-                       ));
-               }
-
                // Set description
                $this->setObjectDescription("Werft");
 
index 9e74079..1306206 100644 (file)
@@ -34,14 +34,6 @@ class BaseDrive extends BaseSimulator {
                // Call parent constructor
                parent::__construct($class);
 
-               // Debug message
-               if (((defined('DEBUG_DRIVE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
-                       $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                               __CLASS__,
-                               __LINE__
-                       ));
-               }
-
                // Set description
                $this->setObjectDescription("Namenloser Antrieb");
 
index 699c721..77e2ba9 100644 (file)
@@ -27,14 +27,6 @@ class Motor extends BaseDrive implements TradeableItem, ConstructableShipPart {
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Debug message
-               if (((defined('DEBUG_DRIVE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
-                       $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                               __CLASS__,
-                               __LINE__
-                       ));
-               }
-
                // Set description
                $this->setObjectDescription("Namenloser Motor");
 
index 9f20617..fa2776b 100644 (file)
@@ -30,14 +30,6 @@ class BaseShipPart extends BaseSimulator {
                // Call parent constructor
                parent::__construct($class);
 
-               // Debug message
-               if (((defined('DEBUG_SHIPPART')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
-                       $this->getDebugInstance()->output(sprintf("[%s:%d:] Kontruktor erreicht.<br />\n",
-                               __CLASS__,
-                               __LINE__
-                       ));
-               }
-
                // Beschreibung
                $this->setObjectDescription("Schiffsteil");
 
index fdde326..1329eac 100644 (file)
@@ -27,14 +27,6 @@ class MaschineRoom extends BaseShipPart {
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Debug message
-               if (((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
-                       $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                               __CLASS__,
-                               __LINE__
-                       ));
-               }
-
                // Set description
                $this->setObjectDescription("Maschinenraum");
 
index d5aa01e..d81e4b2 100644 (file)
@@ -40,10 +40,6 @@ class SimulatorPersonell extends BasePersonell {
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               if (((defined('DEBUG_PERSONELL')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:] Konstruktor erreicht.<br />\n",
-                       $this->__toString()
-               ));
-
                // Set description
                $this->setObjectDescription("Simulationspersonal");
 
index b97f70c..36b97c4 100644 (file)
@@ -30,14 +30,6 @@ class CompanyEmployee extends SimulatorPersonell {
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Debug message
-               if ((((defined('DEBUG_COMPANY_EMPLOYEE')) && (defined('DEBUG_PERSONELL'))) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
-                       $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                               __CLASS__,
-                               __LINE__
-                       ));
-               }
-
                // Set description
                $this->setObjectDescription("Firmenangestellte(r)");
 
index d4ffee9..4799c0e 100644 (file)
@@ -42,20 +42,13 @@ class BaseShip extends BaseSimulator {
                // Call parent constructor
                parent::__construct($class);
 
-               // Beim Schiff angelangt
-               if (((defined('DEBUG_SHIP')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT')))
-                       $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                               __CLASS__,
-                               __LINE__
-                       ));
-
-               // Bezeichnung setzen
-               $this->setObjectDescription("Schiff");
+               // Set object description
+               $this->setObjectDescription("Allgemeines Schiff");
 
-               // Array-Objekt generieren
+               // Prepare array object for all structures
                $this->createStructuresArray();
 
-               // Instanz entfernen
+               // Clean-up a little
                $this->removePartInstance();
                $this->removeNumberFormaters();
        }
index a581c12..3340a68 100644 (file)
@@ -28,14 +28,6 @@ class PassengerShip extends BaseShip implements ConstructableShip, LimitableObje
                // Eltern-Kontruktor aufrufen
                parent::__construct(__CLASS__);
 
-               // Debug message
-               if (((defined('DEBUG_SHIP')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
-                       $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                               __CLASS__,
-                               __LINE__
-                       ));
-               }
-
                // Set description
                $this->setObjectDescription("Passagier-Schiff");
 
index 8620ce9..ebcb4e8 100644 (file)
@@ -30,14 +30,6 @@ class BaseStructure extends BaseSimulator {
                // Call parent constructor
                parent::__construct($class);
 
-               // Debug message
-               if (((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
-                       $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                               __CLASS__,
-                               __LINE__
-                       ));
-               }
-
                // Set description
                $this->setObjectDescription("Schiffsstrukturen");
 
index 43e8a20..ede1c4e 100644 (file)
@@ -27,14 +27,6 @@ class BaseCabin extends BaseCabinStructure {
                // Call parent constructor
                parent::__construct($class);
 
-               // Debug message
-               if (((defined('DEBUG_CABIN')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
-                       $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                               __CLASS__,
-                               __LINE__
-                       ));
-               }
-
                // Set description
                $this->setObjectDescription("Kabine");
        }
index 6357461..66927fb 100644 (file)
@@ -27,14 +27,6 @@ class EconomyCabin extends BaseCabin implements TradeableItem, ConstructableShip
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Debug message
-               if (((defined('DEBUG_CABIN')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
-                       $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                               __CLASS__,
-                               __LINE__
-                       ));
-               }
-
                // Set description
                $this->setObjectDescription("Economy-Class-Kabine");
 
index 46e9880..4875e4f 100644 (file)
@@ -27,12 +27,6 @@ class LowCabin extends BaseCabin implements TradeableItem, ConstructableShipPart
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Debug message
-               if (((defined('DEBUG_CABIN')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                       __CLASS__,
-                       __LINE__
-               ));
-
                // Set description
                $this->setObjectDescription("2Star-Class-Kabine");
 
index 060060e..19f8495 100644 (file)
@@ -27,12 +27,6 @@ class LuxuryCabin extends BaseCabin implements TradeableItem, ConstructableShipP
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Debug message
-               if (((defined('DEBUG_CABIN')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                       __CLASS__,
-                       __LINE__
-               ));
-
                // Set description
                $this->setObjectDescription("Luxuskabine");
 
index 020fd14..ea9e14a 100644 (file)
@@ -27,12 +27,6 @@ class PremierCabin extends BaseCabin implements TradeableItem, ConstructableShip
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Debug message
-               if (((defined('DEBUG_CABIN')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[PremierCabin:] Konstruktor erreicht.<br />\n",
-                       __CLASS__,
-                       __LINE__
-               ));
-
                // Set description
                $this->setObjectDescription("Premier-Class-Kabine");
 
index 31253ae..f38e5b7 100644 (file)
@@ -37,14 +37,6 @@ class BaseCabinStructure extends BaseStructure {
                // Call parent constructor
                parent::__construct($class);
 
-               // Debug message
-               if (((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
-                       $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                               __CLASS__,
-                               __LINE__
-                       ));
-               }
-
                // Set description
                $this->setObjectDescription("Kabinenstruktur");
        }
index 53f6a9c..af8c74d 100644 (file)
@@ -30,14 +30,6 @@ class BaseDeckStructure extends BaseStructure {
                // Call parent constructor
                parent::__construct($class);
 
-               // Debug message
-               if (((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
-                       $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                               __CLASS__,
-                               __LINE__
-                       ));
-               }
-
                // Set description
                $this->setObjectDescription("Deckstruktur");
        }
index 74eb19b..fe3070e 100644 (file)
@@ -29,14 +29,6 @@ class BaseUpperStructure extends BaseStructure {
                // Call parent constructor
                parent::__construct($class);
 
-               // Debug message
-               if (((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
-                       $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                               __CLASS__,
-                               __LINE__
-                       ));
-               }
-
                // Set description
                $this->setObjectDescription("Aufbauten");
        }
index cf3289d..89bdc27 100644 (file)
@@ -27,12 +27,6 @@ class CarDeck extends BaseDeck implements TradeableItem, ConstructableShipPart {
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Debug message
-               if (((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                       __CLASS__,
-                       __LINE__
-               ));
-
                // Set description
                $this->setObjectDescription("Autodeck");
 
index d464f77..209b072 100644 (file)
@@ -27,12 +27,6 @@ class TrainDeck extends BaseDeck implements TradeableItem, ConstructableShipPart
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Debug message
-               if (((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                       __CLASS__,
-                       __LINE__
-               ));
-
                // Set description
                $this->setObjectDescription("Zug-Deck");
 
index e23f894..64c4b57 100644 (file)
@@ -28,12 +28,6 @@ class TruckDeck extends BaseDeck implements TradeableItem, ConstructableShipPart
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Debug message
-               if (((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                       __CLASS__,
-                       __LINE__
-               ));
-
                // Set description
                $this->setObjectDescription("LKW-Deck");
 
index 13768b8..292d8ae 100644 (file)
@@ -29,12 +29,6 @@ class BaseDeck extends BaseDeckStructure {
                // Call parent constructor
                parent::__construct($class);
 
-               // Debub message
-               if (((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                       __CLASS__,
-                       __LINE__
-               ));
-
                // Set description
                $this->setObjectDescription("Allgemeines Deck");
        }
index 239a717..bbd873b 100644 (file)
@@ -27,12 +27,6 @@ class Bridge extends BaseUpperStructure implements TradeableItem, ConstructableS
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Debug message
-               if (((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
-                       __CLASS__,
-                       __LINE__
-               ));
-
                // Set description
                $this->setObjectDescription("Br&uuml;cke");