X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=application%2Fship-simu%2Fmain%2Fstructures%2Fextended%2Fclass_BaseUpperStructure.php;fp=application%2Fship-simu%2Fmain%2Fstructures%2Fextended%2Fclass_BaseUpperStructure.php;h=74eb19b0bcfc3695c57e7b740ac639a6420aef3a;hp=c930fee06c9cb37d8f51b88658e94475e9879eab;hb=1d128d8532290e84885d09d2d3f0060abd08e49e;hpb=ace5ab5addea14f33c3576db5fae85f82d247d87 diff --git a/application/ship-simu/main/structures/extended/class_BaseUpperStructure.php b/application/ship-simu/main/structures/extended/class_BaseUpperStructure.php index c930fee..74eb19b 100644 --- a/application/ship-simu/main/structures/extended/class_BaseUpperStructure.php +++ b/application/ship-simu/main/structures/extended/class_BaseUpperStructure.php @@ -19,15 +19,15 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * along with this program. If not, see . */ class BaseUpperStructure extends BaseStructure { /** * Constructor for all super structures on a ship */ - private function __construct ($class) { + protected function __construct ($class) { // Call parent constructor - parent::constructor($class); + parent::__construct($class); // Debug message if (((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) { @@ -38,14 +38,7 @@ class BaseUpperStructure extends BaseStructure { } // Set description - $this->setPartDescr("Aufbauten"); - } - - /** - * Call new constructor - */ - function constructor ($class) { - $this->__construct($class); + $this->setObjectDescription("Aufbauten"); } }