/**
* Creates an instance of this class
*
- * @param $minerInstance An instance of a MinerHelper class
* @return $stateInstance An instance of a Stateable class
*/
- public final static function createMinerInitState (MinerHelper $minerInstance) {
+ public final static function createMinerInitState () {
// Get new instance
$stateInstance = new MinerInitState();
- // Set the miner instance
- $stateInstance->setMinerInstance($minerInstance);
-
// Return the prepared instance
return $stateInstance;
}
*
* @param $executorInstance An instance of a Executor class
* @return void
+ * @todo 0% done?
*/
public function executeState (Executor $executorInstance) {
- // Now prepare the unit production to maybe become 'virgin' or 'active' if work/test units are there
- $executorInstance->prepareBlockProduction($this);
}
/**
*/
public function encryptedMessageGenerated () {
// Change the state now to 'virgin'
- MinerStateFactory::createMinerStateInstanceByName('virgin', $this->getMinerInstance());
+ MinerStateFactory::createMinerStateInstanceByName('virgin');
}
}