added missing docs
This commit is contained in:
parent
cf0555f422
commit
56833021c6
@ -4,7 +4,13 @@ namespace ManiaControl\Callbacks\Structures;
|
||||
|
||||
use ManiaControl\ManiaControl;
|
||||
use ManiaControl\Players\Player;
|
||||
|
||||
/**
|
||||
* Structure Class for the ArmorEmpty Callback
|
||||
*
|
||||
* @author ManiaControl Team <mail@maniacontrol.com>
|
||||
* @copyright 2014-2015 ManiaControl Team
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class ArmorEmptyStructure {
|
||||
/*
|
||||
* Private properties
|
||||
|
@ -5,6 +5,13 @@ namespace ManiaControl\Callbacks\Structures;
|
||||
use ManiaControl\ManiaControl;
|
||||
use ManiaControl\Players\Player;
|
||||
|
||||
/**
|
||||
* Structure Class for the Capture Callback
|
||||
*
|
||||
* @author ManiaControl Team <mail@maniacontrol.com>
|
||||
* @copyright 2014-2015 ManiaControl Team
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class CaptureStructure {
|
||||
/*
|
||||
* Private properties
|
||||
@ -42,7 +49,7 @@ class CaptureStructure {
|
||||
$playerArray = array();
|
||||
foreach ($this->playerArray as $login) {
|
||||
$player = $this->maniaControl->getPlayerManager()->getPlayer($login);
|
||||
if($player){
|
||||
if ($player) {
|
||||
$playerArray[$login] = $player;
|
||||
}
|
||||
}
|
||||
|
@ -5,6 +5,13 @@ namespace ManiaControl\Callbacks\Structures;
|
||||
use ManiaControl\ManiaControl;
|
||||
use ManiaControl\Players\Player;
|
||||
|
||||
/**
|
||||
* Structure Class for the EliteBeginTurn Callback
|
||||
*
|
||||
* @author ManiaControl Team <mail@maniacontrol.com>
|
||||
* @copyright 2014-2015 ManiaControl Team
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class EliteBeginTurnStructure {
|
||||
/*
|
||||
* Private properties
|
||||
@ -22,8 +29,8 @@ class EliteBeginTurnStructure {
|
||||
* @param array $data
|
||||
*/
|
||||
public function __construct(ManiaControl $maniaControl, array $data) {
|
||||
$this->maniaControl = $maniaControl;
|
||||
$this->attackerLogin = $data[0];
|
||||
$this->maniaControl = $maniaControl;
|
||||
$this->attackerLogin = $data[0];
|
||||
$this->defenderLogins = $data[1];
|
||||
}
|
||||
|
||||
|
@ -5,6 +5,13 @@ namespace ManiaControl\Callbacks\Structures;
|
||||
use ManiaControl\ManiaControl;
|
||||
use ManiaControl\Players\Player;
|
||||
|
||||
/**
|
||||
* Structure Class for the NearMiss Callback
|
||||
*
|
||||
* @author ManiaControl Team <mail@maniacontrol.com>
|
||||
* @copyright 2014-2015 ManiaControl Team
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class NearMissStructure {
|
||||
/*
|
||||
* Private properties
|
||||
|
@ -1,16 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Player Hit Structure
|
||||
*
|
||||
* @author ManiaControl Team <mail@maniacontrol.com>
|
||||
* @copyright 2014-2015 ManiaControl Team
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
|
||||
namespace ManiaControl\Callbacks\Structures;
|
||||
|
||||
use ManiaControl\ManiaControl;
|
||||
use ManiaControl\Players\Player;
|
||||
|
||||
/**
|
||||
* Structure Class for the Player Hit Callback
|
||||
*
|
||||
* @author ManiaControl Team <mail@maniacontrol.com>
|
||||
* @copyright 2014-2015 ManiaControl Team
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class PlayerHitStructure {
|
||||
/*
|
||||
* Private properties
|
||||
|
Loading…
Reference in New Issue
Block a user