X-Git-Url: https://git.mxchange.org/?p=hub.git;a=blobdiff_plain;f=application%2Fhub%2Fmain%2Fstates%2Fcruncher%2Finit%2Fclass_CruncherInitState.php;h=8c1938590e4949c01bee3ce1424105c9cfffc142;hp=749ae73f6e54290e1262d8e03e871927d74a5b46;hb=73aff29b9bc78031853b0b8c0fe0a8e04f66ac29;hpb=81c90916f7a908c77f8844dff5adc6fae3aed422 diff --git a/application/hub/main/states/cruncher/init/class_CruncherInitState.php b/application/hub/main/states/cruncher/init/class_CruncherInitState.php index 749ae73f6..8c1938590 100644 --- a/application/hub/main/states/cruncher/init/class_CruncherInitState.php +++ b/application/hub/main/states/cruncher/init/class_CruncherInitState.php @@ -2,11 +2,11 @@ /** * A Init cruncher state class * - * @author Roland Haeder + * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Hub Developer Team + * @copyright Copyright (c) 2011 - 2014 Cruncher 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 @@ -38,16 +38,12 @@ class CruncherInitState extends BaseCruncherState implements Stateable { /** * Creates an instance of this class * - * @param $cruncherInstance An instance of a CruncherHelper class * @return $stateInstance An instance of a Stateable class */ - public final static function createCruncherInitState (CruncherHelper $cruncherInstance) { + public final static function createCruncherInitState () { // Get new instance $stateInstance = new CruncherInitState(); - // Set the cruncher instance - $stateInstance->setCruncherInstance($cruncherInstance); - // Return the prepared instance return $stateInstance; } @@ -59,8 +55,8 @@ class CruncherInitState extends BaseCruncherState implements Stateable { * @return void */ public function executeState (Executor $executorInstance) { - // Now prepare the unit production to maybe become 'virgin' or 'active' if work/test units are there - $executorInstance->prepareUnitProduction($this); + // Initialize the unit production to maybe become 'virgin' or 'active' if work/test units are there + $executorInstance->initUnitProduction($this); } /** @@ -71,7 +67,7 @@ class CruncherInitState extends BaseCruncherState implements Stateable { */ public function encryptedMessageGenerated () { // Change the state now to 'virgin' - CruncherStateFactory::createCruncherStateInstanceByName('virgin', $this->getCruncherInstance()); + CruncherStateFactory::createCruncherStateInstanceByName('virgin'); } }