X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fship-simu%2Fmain%2Fconstructions%2Fyards%2Fclass_Shipyard.php;h=1959f836dc2e0906d54f2868d8f6113b5cdb1ce3;hb=4f70843ae8428f051d70ccff5bb43fc4c03dda8d;hp=474821a237f8118d0dc8dce20e5f5e94bc3d9488;hpb=efba981c9bf18c733dfde945b09111ff4b6007ce;p=shipsimu.git diff --git a/application/ship-simu/main/constructions/yards/class_Shipyard.php b/application/ship-simu/main/constructions/yards/class_Shipyard.php index 474821a..1959f83 100644 --- a/application/ship-simu/main/constructions/yards/class_Shipyard.php +++ b/application/ship-simu/main/constructions/yards/class_Shipyard.php @@ -3,11 +3,11 @@ * A shipyard construction class which can be used for constructing all kinds of * ships. * - * @author Roland Haeder + * @author Roland Haeder * @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 + * @link http://www.shipsimu.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -49,19 +49,13 @@ class Shipyard extends BaseConstruction { // Call parent constructor parent::__construct(__CLASS__); - // Set description - $this->setObjectDescription("Werft"); - // Staff-Liste/Schiffstyp-Liste erzeugen $this->createStaffList(); $this->createShipTypeList(); - - // Generate unique ID number - $this->generateUniqueId(); } // Create a shipyard and notify it about it's owner - public final static function createShipyardNotify (Harbor $harborInstance, $shipyardName, ShippingCompany $companyInstance) { + public static final function createShipyardNotify (Harbor $harborInstance, $shipyardName, ShippingCompany $companyInstance) { // Werft-Instanz holen $shipyardInstance = self::createShipyard($harborInstance, $shipyardName); @@ -76,7 +70,7 @@ class Shipyard extends BaseConstruction { } // Create a shipyard, first we need to create a harbor - public final static function createShipyard (Harbor $harborInstance, $shipyardName) { + public static final function createShipyard (Harbor $harborInstance, $shipyardName) { // Instanz temporaer holen $shipyardInstance = new Shipyard(); @@ -101,7 +95,6 @@ class Shipyard extends BaseConstruction { // Clean up a little $shipyardInstance->removeDraught(); - $shipyardInstance->removeSystemArray(); // Debug-Meldung if ((defined('DEBUG_SHIPYARD')) || (defined('DEBUG_ALL'))) $shipyardInstance->debugOutput(sprintf("[%s:%d] Die Werft %s wurde gebaut.",