added missing docs

This commit is contained in:
kremsy 2015-06-18 17:12:44 +02:00
parent cf0555f422
commit 56833021c6
5 changed files with 40 additions and 12 deletions

View File

@ -4,7 +4,13 @@ namespace ManiaControl\Callbacks\Structures;
use ManiaControl\ManiaControl; use ManiaControl\ManiaControl;
use ManiaControl\Players\Player; 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 { class ArmorEmptyStructure {
/* /*
* Private properties * Private properties

View File

@ -5,6 +5,13 @@ namespace ManiaControl\Callbacks\Structures;
use ManiaControl\ManiaControl; use ManiaControl\ManiaControl;
use ManiaControl\Players\Player; 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 { class CaptureStructure {
/* /*
* Private properties * Private properties
@ -42,7 +49,7 @@ class CaptureStructure {
$playerArray = array(); $playerArray = array();
foreach ($this->playerArray as $login) { foreach ($this->playerArray as $login) {
$player = $this->maniaControl->getPlayerManager()->getPlayer($login); $player = $this->maniaControl->getPlayerManager()->getPlayer($login);
if($player){ if ($player) {
$playerArray[$login] = $player; $playerArray[$login] = $player;
} }
} }

View File

@ -5,6 +5,13 @@ namespace ManiaControl\Callbacks\Structures;
use ManiaControl\ManiaControl; use ManiaControl\ManiaControl;
use ManiaControl\Players\Player; 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 { class EliteBeginTurnStructure {
/* /*
* Private properties * Private properties
@ -22,8 +29,8 @@ class EliteBeginTurnStructure {
* @param array $data * @param array $data
*/ */
public function __construct(ManiaControl $maniaControl, array $data) { public function __construct(ManiaControl $maniaControl, array $data) {
$this->maniaControl = $maniaControl; $this->maniaControl = $maniaControl;
$this->attackerLogin = $data[0]; $this->attackerLogin = $data[0];
$this->defenderLogins = $data[1]; $this->defenderLogins = $data[1];
} }

View File

@ -5,6 +5,13 @@ namespace ManiaControl\Callbacks\Structures;
use ManiaControl\ManiaControl; use ManiaControl\ManiaControl;
use ManiaControl\Players\Player; 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 { class NearMissStructure {
/* /*
* Private properties * Private properties

View File

@ -1,16 +1,17 @@
<?php <?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; namespace ManiaControl\Callbacks\Structures;
use ManiaControl\ManiaControl; use ManiaControl\ManiaControl;
use ManiaControl\Players\Player; 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 { class PlayerHitStructure {
/* /*
* Private properties * Private properties