/**
* A Init cruncher state class
*
- * @author Roland Haeder <webmaster@ship-simu.org>
+ * @author Roland Haeder <webmaster@shipsimu.org>
* @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
/**
* 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;
}
* @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);
}
/**
*/
public function encryptedMessageGenerated () {
// Change the state now to 'virgin'
- CruncherStateFactory::createCruncherStateInstanceByName('virgin', $this->getCruncherInstance());
+ CruncherStateFactory::createCruncherStateInstanceByName('virgin');
}
}