* The simulator system class is the super class of all other classes. This
* class handles saving of games etc.
*
- * @author Roland Haeder <webmaster@mxchange.org>
+ * @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.3.0
* @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software
* @license GNU GPL 3.0 or any newer version
- * @link http://www.mxchange.org
- *
+ * @link http://www.mxchange.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
* the Free Software Foundation, either version 3 of the License, or
const EXCEPTION_VARIABLE_NOT_SET = 0x02a;
const EXCEPTION_ATTRIBUTES_ARE_MISSING = 0x02b;
const EXCEPTION_ARRAY_ELEMENTS_MISSING = 0x02c;
- const EXCEPTION_NOT_CONSTRUCTABLE = 0x02d;
/**
* In the super constructor these system classes shall be ignored or else
"GzipCompressor", // GZIP compressor
"WebOutput", // Web output sub-system
);
-
+
/**
* Private super constructor
*
$this->getDebugInstance()->output(sprintf("[%s::%s] Stub! Args: %s",
$this->__toString(),
$methodName,
- $argsString
+ $argsString
));
// Return nothing
private final function generateIdNumber () {
return sprintf("%s@%s",
$this->__toString(),
- md5(sprintf("%s:%s:%s:%s:%s:%s",
+ md5(sprintf("%s:%s:%s:%s:%s:%s",
$this->__toString(),
$this->getPartDescr(),
time(),
* @return boolean The result of comparing both's unique ID
*/
public final function equals ($object) {
- if ((defined('DEBUG_SYSTEM')) && (is_object($this->getDebugInstance()))) $this->getDebugInstance()->output(sprintf("[%s:] Ist <strong>%s</strong>=<strong>%s</strong>?<br />\n",
- $this->__toString(),
- $this->__toString(),
- $object->__toString()
- ));
return ($this->getUniqueID() == $object->getUniqueID());
}
*/
public function itemMatches ($itemInstance) {
return (
- ($this->__toString() == $itemInstance->__toString())
- && ($this->getPartDescr() == $itemInstance->getPartDescr())
+ (
+ $this->__toString() == $itemInstance->__toString()
+ ) && (
+ $this->getPartDescr() == $itemInstance->getPartDescr()
+ )
);
}
* @throws InvalidArrayCountException If the array contains less or
* more than two elements
*/
- public function getPathFileNameFromObject () {
+ public final function getPathFileNameFromObject () {
// Get the main object's unique ID. We use this as a path/filename combination
$pathFile = $this->getUniqueID();