* 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 <http://www.gnu.org/licenses/>.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class BaseShip extends BaseSimulator {
// Name des Shipes
private $structures = null;
// Namenloses Ship generieren
- private function __construct($class) {
+ protected function __construct($class) {
// Call parent constructor
- parent::constructor($class);
+ parent::__construct($class);
// Beim Schiff angelangt
if (((defined('DEBUG_SHIP')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT')))
));
// Bezeichnung setzen
- $this->setPartDescr("Schiff");
+ $this->setObjectDescription("Schiff");
// Array-Objekt generieren
$this->createStructuresArray();
$this->removeNumberFormaters();
}
- /**
- * Calls the private constructor
- *
- * @param $class The class' name
- * @return void
- */
- public function constructor ($class) {
- $this->__construct($class);
- }
-
// Array-Objekt anlegen
private function createStructuresArray () {
$this->structures = new FrameworkArrayObject();
__CLASS__,
__LINE__,
$this->getShipName(),
- $partInstance->getPartDescr()
+ $partInstance->getObjectDescription()
));
// Alles klar!