X-Git-Url: https://git.mxchange.org/?p=hub.git;a=blobdiff_plain;f=application%2Fhub%2Fmain%2Fstates%2Fnode%2Finit%2Fclass_NodeInitState.php;h=6f4014f17a421d3b91de0dc14625a54778731b74;hp=5c0fdd214c381c885d8ccef2b69309ef639ba8c8;hb=73aff29b9bc78031853b0b8c0fe0a8e04f66ac29;hpb=f33fd598a1a77034720172ea80353e4d4c0f9662 diff --git a/application/hub/main/states/node/init/class_NodeInitState.php b/application/hub/main/states/node/init/class_NodeInitState.php index 5c0fdd214..6f4014f17 100644 --- a/application/hub/main/states/node/init/class_NodeInitState.php +++ b/application/hub/main/states/node/init/class_NodeInitState.php @@ -2,11 +2,11 @@ /** * A init node state class * - * @author Roland Haeder + * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Hub Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Hub 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,19 +38,12 @@ class NodeInitState extends BaseNodeState implements Stateable { /** * Creates an instance of this class * - * @param $nodeInstance An instance of a NodeHelper class * @return $stateInstance An instance of a Stateable class */ - public static final function createNodeInitState (NodeHelper $nodeInstance) { + public static final function createNodeInitState () { // Get new instance $stateInstance = new NodeInitState(); - // Debug message - $stateInstance->debugOutput('NODE-STATE: Has changed from ' . $nodeInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.'); - - // Set the node instance - $stateInstance->setNodeInstance($nodeInstance); - // Return the prepared instance return $stateInstance; } @@ -60,12 +53,12 @@ class NodeInitState extends BaseNodeState implements Stateable { * nodes with current state 'init' now 'virgin'. * * @return void + * @todo We might want to move some calls to this method to fill it with life */ public function nodeGeneratedSessionId () { // Create the new state instance - StateFactory::createStateInstanceByName('virgin', $this->getNodeInstance()); + NodeStateFactory::createNodeStateInstanceByName('virgin'); } - } // [EOF]