proper scoping to callback structures + usage Information Method

This commit is contained in:
kremsy
2017-03-26 12:42:20 +02:00
parent 4effad8f6d
commit de3bae9029
16 changed files with 172 additions and 132 deletions

View File

@ -15,7 +15,7 @@ use ManiaControl\Players\Player;
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class OnFallDamageStructure extends BaseStructure {
public $time;
private $time;
/**
* @var Player $shooter
*/
@ -29,6 +29,8 @@ class OnFallDamageStructure extends BaseStructure {
}
/**
* < Server time when the event occured
*
* @return int
*/
public function getTime() {
@ -36,15 +38,12 @@ class OnFallDamageStructure extends BaseStructure {
}
/**
* < Player who fell
*
* @return Player
*/
public function getVictim() {
return $this->victim;
}
/** Dumps the Object with some Information */
public function dump() {
parent::dump();
var_dump("With getVictim() you get a Player Object");
}
}