Added PHPDoc for new HelpManager methods

This commit is contained in:
Max Klaversma 2014-05-01 01:58:57 +02:00 committed by Steffen Schröder
parent 5785fc41e9
commit 6cf521aef2

View File

@ -133,6 +133,12 @@ class HelpManager implements CommandListener, CallbackListener {
$this->prepareHelpAll($this->adminCommands, $player); $this->prepareHelpAll($this->adminCommands, $player);
} }
/**
* Prepares the commands for the HelpAll ManiaLink.
*
* @param $commands
* @param $player
*/
private function prepareHelpAll($commands, $player) { private function prepareHelpAll($commands, $player) {
$showCommands = array(); $showCommands = array();
$registeredMethods = array(); $registeredMethods = array();
@ -158,6 +164,12 @@ class HelpManager implements CommandListener, CallbackListener {
$this->showHelpAllList($showCommands, $player); $this->showHelpAllList($showCommands, $player);
} }
/**
* Shows the HelpAll list to the player.
*
* @param $commands
* @param $player
*/
private function showHelpAllList($commands, $player) { private function showHelpAllList($commands, $player) {
$width = $this->maniaControl->manialinkManager->styleManager->getListWidgetsWidth(); $width = $this->maniaControl->manialinkManager->styleManager->getListWidgetsWidth();
$height = $this->maniaControl->manialinkManager->styleManager->getListWidgetsHeight(); $height = $this->maniaControl->manialinkManager->styleManager->getListWidgetsHeight();