added license and copyright annotations
improved phpdoc
This commit is contained in:
parent
07a63cf518
commit
08cad46cfc
4
.gitignore
vendored
4
.gitignore
vendored
@ -2,6 +2,4 @@
|
|||||||
/application/.idea/
|
/application/.idea/
|
||||||
/.settings/
|
/.settings/
|
||||||
/.buildpath
|
/.buildpath
|
||||||
/.project
|
/.project
|
||||||
/updates/
|
|
||||||
/versions/
|
|
@ -20,9 +20,11 @@ use ManiaControl\Players\PlayerManager;
|
|||||||
* Class managing Actions Menus
|
* Class managing Actions Menus
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class ActionsMenu implements CallbackListener, ManialinkPageAnswerListener {
|
class ActionsMenu implements CallbackListener, ManialinkPageAnswerListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const MLID_MENU = 'ActionsMenu.MLID';
|
const MLID_MENU = 'ActionsMenu.MLID';
|
||||||
@ -32,7 +34,7 @@ class ActionsMenu implements CallbackListener, ManialinkPageAnswerListener {
|
|||||||
const ACTION_OPEN_ADMIN_MENU = 'ActionsMenu.OpenAdminMenu';
|
const ACTION_OPEN_ADMIN_MENU = 'ActionsMenu.OpenAdminMenu';
|
||||||
const ACTION_OPEN_PLAYER_MENU = 'ActionsMenu.OpenPlayerMenu';
|
const ACTION_OPEN_PLAYER_MENU = 'ActionsMenu.OpenPlayerMenu';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -1,14 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Created by PhpStorm.
|
|
||||||
* User: Lukas
|
|
||||||
* Date: 31.01.14
|
|
||||||
* Time: 12:54
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace ManiaControl\Admin;
|
namespace ManiaControl\Admin;
|
||||||
|
|
||||||
|
|
||||||
use FML\Controls\Control;
|
use FML\Controls\Control;
|
||||||
use FML\Controls\Frame;
|
use FML\Controls\Frame;
|
||||||
use FML\Controls\Labels\Label_Button;
|
use FML\Controls\Labels\Label_Button;
|
||||||
@ -25,15 +18,22 @@ use ManiaControl\Manialinks\ManialinkManager;
|
|||||||
use ManiaControl\Manialinks\ManialinkPageAnswerListener;
|
use ManiaControl\Manialinks\ManialinkPageAnswerListener;
|
||||||
use ManiaControl\Players\Player;
|
use ManiaControl\Players\Player;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Widget Class listing Authorized Players
|
||||||
|
*
|
||||||
|
* @author kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
|
*/
|
||||||
class AdminLists implements ManialinkPageAnswerListener, CallbackListener {
|
class AdminLists implements ManialinkPageAnswerListener, CallbackListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const ACTION_OPEN_ADMINLISTS = "AdminList.OpenAdminLists";
|
const ACTION_OPEN_ADMINLISTS = "AdminList.OpenAdminLists";
|
||||||
const ACTION_REVOKE_RIGHTS = "AdminList.RevokeRights";
|
const ACTION_REVOKE_RIGHTS = "AdminList.RevokeRights";
|
||||||
const MAX_PLAYERS_PER_PAGE = 15;
|
const MAX_PLAYERS_PER_PAGE = 15;
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $adminListShown = array();
|
private $adminListShown = array();
|
||||||
@ -51,7 +51,6 @@ class AdminLists implements ManialinkPageAnswerListener, CallbackListener {
|
|||||||
$this->maniaControl->callbackManager->registerCallbackListener(ManialinkManager::CB_MAIN_WINDOW_OPENED, $this, 'handleWidgetOpened');
|
$this->maniaControl->callbackManager->registerCallbackListener(ManialinkManager::CB_MAIN_WINDOW_OPENED, $this, 'handleWidgetOpened');
|
||||||
$this->maniaControl->callbackManager->registerCallbackListener(AuthenticationManager::CB_AUTH_LEVEL_CHANGED, $this, 'updateWidget');
|
$this->maniaControl->callbackManager->registerCallbackListener(AuthenticationManager::CB_AUTH_LEVEL_CHANGED, $this, 'updateWidget');
|
||||||
|
|
||||||
|
|
||||||
// Menu Entry AdminList
|
// Menu Entry AdminList
|
||||||
$this->maniaControl->manialinkManager->registerManialinkPageAnswerListener(self::ACTION_OPEN_ADMINLISTS, $this, 'openAdminList');
|
$this->maniaControl->manialinkManager->registerManialinkPageAnswerListener(self::ACTION_OPEN_ADMINLISTS, $this, 'openAdminList');
|
||||||
$itemQuad = new Quad_UIConstruction_Buttons();
|
$itemQuad = new Quad_UIConstruction_Buttons();
|
||||||
@ -60,10 +59,21 @@ class AdminLists implements ManialinkPageAnswerListener, CallbackListener {
|
|||||||
$this->maniaControl->actionsMenu->addMenuItem($itemQuad, false, 50, 'Open Adminlist');
|
$this->maniaControl->actionsMenu->addMenuItem($itemQuad, false, 50, 'Open Adminlist');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Open Admin List Action
|
||||||
|
*
|
||||||
|
* @param array $callback
|
||||||
|
* @param Player $player
|
||||||
|
*/
|
||||||
public function openAdminList(array $callback, Player $player) {
|
public function openAdminList(array $callback, Player $player) {
|
||||||
$this->showAdminLists($player);
|
$this->showAdminLists($player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the Admin List
|
||||||
|
*
|
||||||
|
* @param Player $player
|
||||||
|
*/
|
||||||
public function showAdminLists(Player $player) {
|
public function showAdminLists(Player $player) {
|
||||||
$this->adminListShown[$player->login] = true;
|
$this->adminListShown[$player->login] = true;
|
||||||
|
|
||||||
|
@ -7,12 +7,14 @@ use ManiaControl\Commands\CommandListener;
|
|||||||
use ManiaControl\Players\Player;
|
use ManiaControl\Players\Player;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class offering commands to grant authorizations to players
|
* Class offering Commands to grant Authorizations to Players
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class AuthCommands implements CommandListener {
|
class AuthCommands implements CommandListener {
|
||||||
/**
|
/*
|
||||||
* Private properties
|
* Private properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -12,9 +12,11 @@ use ManiaControl\Players\PlayerManager;
|
|||||||
* Class managing Authentication Levels
|
* Class managing Authentication Levels
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class AuthenticationManager implements CallbackListener {
|
class AuthenticationManager implements CallbackListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const AUTH_LEVEL_PLAYER = 0;
|
const AUTH_LEVEL_PLAYER = 0;
|
||||||
@ -24,12 +26,12 @@ class AuthenticationManager implements CallbackListener {
|
|||||||
const AUTH_LEVEL_MASTERADMIN = 4;
|
const AUTH_LEVEL_MASTERADMIN = 4;
|
||||||
const CB_AUTH_LEVEL_CHANGED = 'AuthenticationManager.AuthLevelChanged';
|
const CB_AUTH_LEVEL_CHANGED = 'AuthenticationManager.AuthLevelChanged';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Public Properties
|
* Public Properties
|
||||||
*/
|
*/
|
||||||
public $authCommands = null;
|
public $authCommands = null;
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
namespace ManiaControl\Bills;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ManiaControl BillData Structure
|
* ManiaControl BillData Structure
|
||||||
*
|
*
|
||||||
* @author kremsy and steeffeen
|
* @author kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
namespace ManiaControl\Bills;
|
|
||||||
|
|
||||||
|
|
||||||
class BillData {
|
class BillData {
|
||||||
|
/*
|
||||||
|
* Public Properties
|
||||||
|
*/
|
||||||
public $function = null;
|
public $function = null;
|
||||||
public $pay = false;
|
public $pay = false;
|
||||||
public $player = null;
|
public $player = null;
|
||||||
@ -15,6 +20,14 @@ class BillData {
|
|||||||
public $amount = 0;
|
public $amount = 0;
|
||||||
public $creationTime = -1;
|
public $creationTime = -1;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Construct new BillData
|
||||||
|
* @param unknown $function
|
||||||
|
* @param unknown $player
|
||||||
|
* @param unknown $amount
|
||||||
|
* @param string $pay
|
||||||
|
* @param string $receiverLogin
|
||||||
|
*/
|
||||||
public function __construct($function, $player, $amount, $pay = false, $receiverLogin = false) {
|
public function __construct($function, $player, $amount, $pay = false, $receiverLogin = false) {
|
||||||
$this->function = $function;
|
$this->function = $function;
|
||||||
$this->player = $player;
|
$this->player = $player;
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* ManiaControl Bill-Manager
|
|
||||||
*
|
|
||||||
* @author kremsy and steeffeen
|
|
||||||
*/
|
|
||||||
namespace ManiaControl\Bills;
|
|
||||||
|
|
||||||
|
namespace ManiaControl\Bills;
|
||||||
|
|
||||||
use ManiaControl\Callbacks\CallbackListener;
|
use ManiaControl\Callbacks\CallbackListener;
|
||||||
use ManiaControl\Callbacks\CallbackManager;
|
use ManiaControl\Callbacks\CallbackManager;
|
||||||
@ -14,8 +9,15 @@ use ManiaControl\Players\Player;
|
|||||||
use Maniaplanet\DedicatedServer\Structures\Bill;
|
use Maniaplanet\DedicatedServer\Structures\Bill;
|
||||||
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ManiaControl Bill-Manager
|
||||||
|
*
|
||||||
|
* @author kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
|
*/
|
||||||
class BillManager implements CallbackListener {
|
class BillManager implements CallbackListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const DONATED_TO_SERVER = 1;
|
const DONATED_TO_SERVER = 1;
|
||||||
@ -24,7 +26,7 @@ class BillManager implements CallbackListener {
|
|||||||
const PLAYER_REFUSED_DONATION = 4;
|
const PLAYER_REFUSED_DONATION = 4;
|
||||||
const ERROR_WHILE_TRANSACTION = 5;
|
const ERROR_WHILE_TRANSACTION = 5;
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
@ -138,4 +140,4 @@ class BillManager implements CallbackListener {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,9 +6,11 @@ namespace ManiaControl\Callbacks;
|
|||||||
* Interface for CallbackListener
|
* Interface for CallbackListener
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
interface CallbackListener {
|
interface CallbackListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const CALLBACKLISTENER_INTERFACE = __CLASS__;
|
const CALLBACKLISTENER_INTERFACE = __CLASS__;
|
||||||
|
@ -8,9 +8,11 @@ use ManiaControl\ManiaControl;
|
|||||||
* Class for managing Server and ManiaControl Callbacks
|
* Class for managing Server and ManiaControl Callbacks
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class CallbackManager {
|
class CallbackManager {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
// ManiaControl callbacks
|
// ManiaControl callbacks
|
||||||
@ -44,12 +46,12 @@ class CallbackManager {
|
|||||||
const CB_TM_PLAYERINCOHERENCE = 'TrackMania.PlayerIncoherence';
|
const CB_TM_PLAYERINCOHERENCE = 'TrackMania.PlayerIncoherence';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Public proeprties
|
* Public Properties
|
||||||
*/
|
*/
|
||||||
public $shootManiaCallbacks = null;
|
public $shootManiaCallbacks = null;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Private properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
private $callbackListeners = array();
|
private $callbackListeners = array();
|
||||||
|
@ -8,6 +8,8 @@ use ManiaControl\ManiaControl;
|
|||||||
* Class handling and parsing ShootMania Callbacks
|
* Class handling and parsing ShootMania Callbacks
|
||||||
*
|
*
|
||||||
* @author steeffeen
|
* @author steeffeen
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class ShootManiaCallbacks implements CallbackListener {
|
class ShootManiaCallbacks implements CallbackListener {
|
||||||
/*
|
/*
|
||||||
@ -23,7 +25,7 @@ class ShootManiaCallbacks implements CallbackListener {
|
|||||||
const SCB_TIMEATTACK_ONFINISH = 'TimeAttack_OnFinish';
|
const SCB_TIMEATTACK_ONFINISH = 'TimeAttack_OnFinish';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Private properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
|
||||||
|
@ -1,15 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
namespace ManiaControl\Callbacks;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface for TimerListener
|
* Interface for TimerListener
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
namespace ManiaControl\Callbacks;
|
|
||||||
|
|
||||||
|
|
||||||
interface TimerListener {
|
interface TimerListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const TIMERLISTENER_INTERFACE = __CLASS__;
|
const TIMERLISTENER_INTERFACE = __CLASS__;
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,20 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Class for managing Timers
|
|
||||||
*
|
|
||||||
* @author steeffeen & kremsy
|
|
||||||
*/
|
|
||||||
namespace ManiaControl\Callbacks;
|
|
||||||
|
|
||||||
|
namespace ManiaControl\Callbacks;
|
||||||
|
|
||||||
use ManiaControl\ManiaControl;
|
use ManiaControl\ManiaControl;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class for managing Timers
|
||||||
|
*
|
||||||
|
* @author kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
|
*/
|
||||||
class TimerManager {
|
class TimerManager {
|
||||||
|
/*
|
||||||
|
* Private Properties
|
||||||
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
private $timerListenings = array();
|
private $timerListenings = array();
|
||||||
|
|
||||||
@ -22,7 +27,6 @@ class TimerManager {
|
|||||||
$this->maniaControl = $maniaControl;
|
$this->maniaControl = $maniaControl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registers a One Time Listening
|
* Registers a One Time Listening
|
||||||
*
|
*
|
||||||
@ -129,4 +133,4 @@ class TimerManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace ManiaControl;
|
namespace ManiaControl;
|
||||||
|
|
||||||
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Chat utility class
|
* Chat Utility Class
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class Chat {
|
class Chat {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const SETTING_PREFIX = 'Messages Prefix';
|
const SETTING_PREFIX = 'Messages Prefix';
|
||||||
@ -18,8 +21,8 @@ class Chat {
|
|||||||
const SETTING_FORMAT_ERROR = 'Error Format';
|
const SETTING_FORMAT_ERROR = 'Error Format';
|
||||||
const SETTING_FORMAT_USAGEINFO = 'UsageInfo Format';
|
const SETTING_FORMAT_USAGEINFO = 'UsageInfo Format';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
|
||||||
|
@ -3,9 +3,11 @@
|
|||||||
namespace ManiaControl;
|
namespace ManiaControl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Utility class offering methods to convert and use ManiaPlanet colors
|
* Utility Class offering Methods to convert and use ManiaPlanet Colors
|
||||||
*
|
*
|
||||||
* @author steeffeen
|
* @author steeffeen
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
abstract class ColorUtil {
|
abstract class ColorUtil {
|
||||||
|
|
||||||
|
@ -3,9 +3,11 @@
|
|||||||
namespace ManiaControl\Commands;
|
namespace ManiaControl\Commands;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface for command listeners
|
* Interface for Command Listeners
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
interface CommandListener {
|
interface CommandListener {
|
||||||
}
|
}
|
||||||
|
@ -9,11 +9,12 @@ use ManiaControl\ManiaControl;
|
|||||||
/**
|
/**
|
||||||
* Class for handling Chat Commands
|
* Class for handling Chat Commands
|
||||||
*
|
*
|
||||||
* @property mixed commandListeners
|
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class CommandManager implements CallbackListener {
|
class CommandManager implements CallbackListener {
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -8,12 +8,14 @@ use ManiaControl\ManiaControl;
|
|||||||
use ManiaControl\Players\Player;
|
use ManiaControl\Players\Player;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ManiaControl Chat-Message Plugin
|
* Help Manager
|
||||||
*
|
*
|
||||||
* @author kremsy and steeffeen
|
* @author kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class HelpManager implements CommandListener, CallbackListener {
|
class HelpManager implements CommandListener, CallbackListener {
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
@ -87,5 +89,4 @@ class HelpManager implements CommandListener, CallbackListener {
|
|||||||
array_push($this->playerCommands, array("Name" => $name, "Description" => $description));
|
array_push($this->playerCommands, array("Name" => $name, "Description" => $description));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
|
@ -21,12 +21,14 @@ use ManiaControl\Manialinks\ManialinkPageAnswerListener;
|
|||||||
use ManiaControl\Players\Player;
|
use ManiaControl\Players\Player;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class managing ingame ManiaControl configuration
|
* Class managing ingame ManiaControl Configuration
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class Configurator implements CallbackListener, CommandListener, ManialinkPageAnswerListener {
|
class Configurator implements CallbackListener, CommandListener, ManialinkPageAnswerListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const ACTION_TOGGLEMENU = 'Configurator.ToggleMenuAction';
|
const ACTION_TOGGLEMENU = 'Configurator.ToggleMenuAction';
|
||||||
@ -39,8 +41,8 @@ class Configurator implements CallbackListener, CommandListener, ManialinkPageAn
|
|||||||
const SETTING_MENU_STYLE = 'Menu Widget BackgroundQuad Style';
|
const SETTING_MENU_STYLE = 'Menu Widget BackgroundQuad Style';
|
||||||
const SETTING_MENU_SUBSTYLE = 'Menu Widget BackgroundQuad Substyle';
|
const SETTING_MENU_SUBSTYLE = 'Menu Widget BackgroundQuad Substyle';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
private $scriptSettings = null;
|
private $scriptSettings = null;
|
||||||
|
@ -9,6 +9,8 @@ use ManiaControl\Players\Player;
|
|||||||
* Interface for Configurator Menus
|
* Interface for Configurator Menus
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
interface ConfiguratorMenu {
|
interface ConfiguratorMenu {
|
||||||
|
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Class offering a Configurator for Script Settings
|
|
||||||
*
|
|
||||||
* @author steeffeen & kremsy
|
|
||||||
*/
|
|
||||||
namespace ManiaControl\Configurators;
|
|
||||||
|
|
||||||
|
namespace ManiaControl\Configurators;
|
||||||
|
|
||||||
use FML\Controls\Control;
|
use FML\Controls\Control;
|
||||||
use FML\Controls\Entry;
|
use FML\Controls\Entry;
|
||||||
@ -20,8 +15,15 @@ use ManiaControl\Callbacks\CallbackManager;
|
|||||||
use ManiaControl\ManiaControl;
|
use ManiaControl\ManiaControl;
|
||||||
use ManiaControl\Players\Player;
|
use ManiaControl\Players\Player;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class offering a Configurator for ManiaControl Settings
|
||||||
|
*
|
||||||
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
|
*/
|
||||||
class ManiaControlSettings implements ConfiguratorMenu, CallbackListener {
|
class ManiaControlSettings implements ConfiguratorMenu, CallbackListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const TITLE = 'ManiaControl Settings';
|
const TITLE = 'ManiaControl Settings';
|
||||||
@ -29,7 +31,7 @@ class ManiaControlSettings implements ConfiguratorMenu, CallbackListener {
|
|||||||
const ACTION_SETTING_BOOL = 'ManiaControlSettings.ActionBoolSetting.';
|
const ACTION_SETTING_BOOL = 'ManiaControlSettings.ActionBoolSetting.';
|
||||||
const SETTING_PERMISSION_CHANGE_MC_SETTINGS = 'Change ManiaControl Settings';
|
const SETTING_PERMISSION_CHANGE_MC_SETTINGS = 'Change ManiaControl Settings';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -21,9 +21,11 @@ use ManiaControl\Maps\Map;
|
|||||||
* Class offering a Configurator for Script Settings
|
* Class offering a Configurator for Script Settings
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class ScriptSettings implements ConfiguratorMenu, CallbackListener {
|
class ScriptSettings implements ConfiguratorMenu, CallbackListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const ACTION_PREFIX_SETTING = 'ScriptSetting';
|
const ACTION_PREFIX_SETTING = 'ScriptSetting';
|
||||||
@ -33,7 +35,7 @@ class ScriptSettings implements ConfiguratorMenu, CallbackListener {
|
|||||||
const TABLE_SCRIPT_SETTINGS = 'mc_scriptsettings';
|
const TABLE_SCRIPT_SETTINGS = 'mc_scriptsettings';
|
||||||
const SETTING_LOAD_DEFAULT_SETTINGS_MAP_BEGIN = 'Load Stored Script-Settings on Map-Begin';
|
const SETTING_LOAD_DEFAULT_SETTINGS_MAP_BEGIN = 'Load Stored Script-Settings on Map-Begin';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -14,14 +14,15 @@ use ManiaControl\Callbacks\CallbackManager;
|
|||||||
use ManiaControl\ManiaControl;
|
use ManiaControl\ManiaControl;
|
||||||
use ManiaControl\Players\Player;
|
use ManiaControl\Players\Player;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class offering a Configurator for Server Settings
|
* Class offering a Configurator for Server Settings
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class ServerSettings implements ConfiguratorMenu, CallbackListener {
|
class ServerSettings implements ConfiguratorMenu, CallbackListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const ACTION_PREFIX_SETTING = 'ServerSettings';
|
const ACTION_PREFIX_SETTING = 'ServerSettings';
|
||||||
@ -30,7 +31,7 @@ class ServerSettings implements ConfiguratorMenu, CallbackListener {
|
|||||||
const CB_SERVERSETTINGS_CHANGED = 'ServerSettings.SettingsChanged';
|
const CB_SERVERSETTINGS_CHANGED = 'ServerSettings.SettingsChanged';
|
||||||
const TABLE_SERVER_SETTINGS = 'mc_serversettings';
|
const TABLE_SERVER_SETTINGS = 'mc_serversettings';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -5,18 +5,20 @@ namespace ManiaControl;
|
|||||||
use ManiaControl\Callbacks\TimerListener;
|
use ManiaControl\Callbacks\TimerListener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Database connection class
|
* Database Connection Class
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class Database implements TimerListener {
|
class Database implements TimerListener {
|
||||||
/**
|
/*
|
||||||
* Public properties
|
* Public Properties
|
||||||
*/
|
*/
|
||||||
public $mysqli = null;
|
public $mysqli = null;
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
|
||||||
|
@ -9,14 +9,16 @@ use ManiaControl\Update\UpdateManager;
|
|||||||
* Error and Exception Manager Class
|
* Error and Exception Manager Class
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class ErrorHandler {
|
class ErrorHandler {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const MC_DEBUG_NOTICE = "ManiaControl.DebugNotice";
|
const MC_DEBUG_NOTICE = "ManiaControl.DebugNotice";
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace ManiaControl\Files;
|
namespace ManiaControl\Files;
|
||||||
|
|
||||||
use cURL\Exception;
|
use cURL\Exception;
|
||||||
@ -9,17 +10,19 @@ use ManiaControl\ManiaControl;
|
|||||||
/**
|
/**
|
||||||
* Asynchronous File Reader
|
* Asynchronous File Reader
|
||||||
*
|
*
|
||||||
* @author kremsy & steeffeen
|
* @author kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class AsynchronousFileReader {
|
class AsynchronousFileReader {
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
private $requests = array();
|
private $requests = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct
|
* Construct FileReader
|
||||||
*
|
*
|
||||||
* @param ManiaControl $maniaControl
|
* @param ManiaControl $maniaControl
|
||||||
*/
|
*/
|
||||||
|
@ -6,9 +6,11 @@ use ManiaControl\ManiaControl;
|
|||||||
use ManiaControl\Formatter;
|
use ManiaControl\Formatter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* File utility class
|
* Files Utility Class
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
abstract class FileUtil {
|
abstract class FileUtil {
|
||||||
|
|
||||||
|
@ -6,11 +6,13 @@ namespace ManiaControl;
|
|||||||
* Class offering Methods to format Texts and Values
|
* Class offering Methods to format Texts and Values
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
abstract class Formatter {
|
abstract class Formatter {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Formats the given Time (Milliseconds)
|
* Format the given Time (in Milliseconds)
|
||||||
*
|
*
|
||||||
* @param int $time
|
* @param int $time
|
||||||
* @return string
|
* @return string
|
||||||
|
@ -40,7 +40,7 @@ require_once __DIR__ . '/Libs/curl-easy/autoload.php';
|
|||||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class ManiaControl implements CommandListener, TimerListener {
|
class ManiaControl implements CommandListener, TimerListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const VERSION = '0.01';
|
const VERSION = '0.01';
|
||||||
@ -53,8 +53,8 @@ class ManiaControl implements CommandListener, TimerListener {
|
|||||||
const SETTING_PERMISSION_SHUTDOWN = 'Shutdown ManiaControl';
|
const SETTING_PERMISSION_SHUTDOWN = 'Shutdown ManiaControl';
|
||||||
const SETTING_PERMISSION_RESTART = 'Restart ManiaControl';
|
const SETTING_PERMISSION_RESTART = 'Restart ManiaControl';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Public properties
|
* Public Properties
|
||||||
*/
|
*/
|
||||||
public $actionsMenu = null;
|
public $actionsMenu = null;
|
||||||
public $authenticationManager = null;
|
public $authenticationManager = null;
|
||||||
@ -62,10 +62,7 @@ class ManiaControl implements CommandListener, TimerListener {
|
|||||||
public $chat = null;
|
public $chat = null;
|
||||||
public $config = null;
|
public $config = null;
|
||||||
public $configurator = null;
|
public $configurator = null;
|
||||||
/**
|
/** @var Connection $client */
|
||||||
*
|
|
||||||
* @var Connection $client
|
|
||||||
*/
|
|
||||||
public $client = null;
|
public $client = null;
|
||||||
public $commandManager = null;
|
public $commandManager = null;
|
||||||
public $database = null;
|
public $database = null;
|
||||||
@ -82,8 +79,8 @@ class ManiaControl implements CommandListener, TimerListener {
|
|||||||
public $fileReader = null;
|
public $fileReader = null;
|
||||||
public $billManager = null;
|
public $billManager = null;
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $shutdownRequested = false;
|
private $shutdownRequested = false;
|
||||||
|
|
||||||
|
@ -8,7 +8,9 @@ use ManiaControl\Formatter;
|
|||||||
* Mania Exchange Map Info Object
|
* Mania Exchange Map Info Object
|
||||||
*
|
*
|
||||||
* @author Xymph
|
* @author Xymph
|
||||||
* @updated lukas and steeffeen
|
* @updated kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class MXMapInfo {
|
class MXMapInfo {
|
||||||
public $prefix, $id, $uid, $name, $userid, $author, $uploaded, $updated, $type, $maptype;
|
public $prefix, $id, $uid, $name, $userid, $author, $uploaded, $updated, $type, $maptype;
|
||||||
@ -100,4 +102,4 @@ class MXMapInfo {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,14 +23,15 @@ use ManiaControl\Maps\MapCommands;
|
|||||||
use ManiaControl\Maps\MapQueue;
|
use ManiaControl\Maps\MapQueue;
|
||||||
use ManiaControl\Players\Player;
|
use ManiaControl\Players\Player;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ManiaExchange List Widget Class
|
* ManiaExchange List Widget Class
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener {
|
class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const ACTION_ADD_MAP = 'ManiaExchangeList.AddMap';
|
const ACTION_ADD_MAP = 'ManiaExchangeList.AddMap';
|
||||||
@ -39,7 +40,7 @@ class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener
|
|||||||
const ACTION_GET_MAPS_FROM_AUTHOR = 'ManiaExchangeList.GetMapsFromAuthor';
|
const ACTION_GET_MAPS_FROM_AUTHOR = 'ManiaExchangeList.GetMapsFromAuthor';
|
||||||
const MAX_MX_MAPS_PER_PAGE = 14;
|
const MAX_MX_MAPS_PER_PAGE = 14;
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -11,9 +11,11 @@ use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
|||||||
* Mania Exchange Info Searcher Class
|
* Mania Exchange Info Searcher Class
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class ManiaExchangeManager{
|
class ManiaExchangeManager{
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
//Search others
|
//Search others
|
||||||
@ -41,8 +43,8 @@ class ManiaExchangeManager{
|
|||||||
//Beta Testing Activated
|
//Beta Testing Activated
|
||||||
const SETTING_MP3_BETA_TESTING = 'Activate MP3 Beta Testing';
|
const SETTING_MP3_BETA_TESTING = 'Activate MP3 Beta Testing';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Propertieswc
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
private $mxIdUidVector = array();
|
private $mxIdUidVector = array();
|
||||||
|
@ -13,15 +13,16 @@ use ManiaControl\Players\PlayerManager;
|
|||||||
* Class managing the Custom UI Settings
|
* Class managing the Custom UI Settings
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class CustomUIManager implements CallbackListener, TimerListener {
|
class CustomUIManager implements CallbackListener, TimerListener {
|
||||||
|
/*
|
||||||
/**
|
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const CUSTOMUI_MLID = 'CustomUI.MLID';
|
const CUSTOMUI_MLID = 'CustomUI.MLID';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -15,9 +15,11 @@ use ManiaControl\Players\Player;
|
|||||||
* Class managing Icons
|
* Class managing Icons
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class IconManager implements CallbackListener {
|
class IconManager implements CallbackListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const DEFAULT_IMG_URL = 'http://images.maniacontrol.com/icons/';
|
const DEFAULT_IMG_URL = 'http://images.maniacontrol.com/icons/';
|
||||||
|
@ -13,13 +13,14 @@ use ManiaControl\Players\Player;
|
|||||||
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Manialink manager class
|
* Manialink Manager Class
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class ManialinkManager implements ManialinkPageAnswerListener, CallbackListener {
|
class ManialinkManager implements ManialinkPageAnswerListener, CallbackListener {
|
||||||
|
/*
|
||||||
/**
|
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const MAIN_MLID = 'Main.ManiaLinkId';
|
const MAIN_MLID = 'Main.ManiaLinkId';
|
||||||
@ -27,15 +28,15 @@ class ManialinkManager implements ManialinkPageAnswerListener, CallbackListener
|
|||||||
const CB_MAIN_WINDOW_CLOSED = 'ManialinkManagerCallback.MainWindowClosed';
|
const CB_MAIN_WINDOW_CLOSED = 'ManialinkManagerCallback.MainWindowClosed';
|
||||||
const CB_MAIN_WINDOW_OPENED = 'ManialinkManagerCallback.MainWindowOpened';
|
const CB_MAIN_WINDOW_OPENED = 'ManialinkManagerCallback.MainWindowOpened';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Public properties
|
* Public Properties
|
||||||
*/
|
*/
|
||||||
public $styleManager = null;
|
public $styleManager = null;
|
||||||
public $customUIManager = null;
|
public $customUIManager = null;
|
||||||
public $iconManager = null;
|
public $iconManager = null;
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
private $pageAnswerListeners = array();
|
private $pageAnswerListeners = array();
|
||||||
|
@ -3,12 +3,14 @@
|
|||||||
namespace ManiaControl\Manialinks;
|
namespace ManiaControl\Manialinks;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface for manialink page answer listeners
|
* Interface for Manialink Page Answer Listeners
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
interface ManialinkPageAnswerListener {
|
interface ManialinkPageAnswerListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const MANIALINKPAGEANSWERLISTENER_INTERFACE = __CLASS__;
|
const MANIALINKPAGEANSWERLISTENER_INTERFACE = __CLASS__;
|
||||||
|
@ -13,12 +13,14 @@ use FML\Script\Script;
|
|||||||
use ManiaControl\ManiaControl;
|
use ManiaControl\ManiaControl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class managing default control styles
|
* Class managing default Control Styles
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class StyleManager {
|
class StyleManager {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const SETTING_LABEL_DEFAULT_STYLE = 'Default Label Style';
|
const SETTING_LABEL_DEFAULT_STYLE = 'Default Label Style';
|
||||||
@ -32,8 +34,8 @@ class StyleManager {
|
|||||||
|
|
||||||
const SETTING_ICON_DEFAULT_OFFSET_SM = 'Default Icon Offset in Shootmania';
|
const SETTING_ICON_DEFAULT_OFFSET_SM = 'Default Icon Offset in Shootmania';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
|
||||||
|
@ -9,9 +9,11 @@ use ManiaControl\ManiaExchange\MXMapInfo;
|
|||||||
* Map Class
|
* Map Class
|
||||||
*
|
*
|
||||||
* @author kremsy & steeffeen
|
* @author kremsy & steeffeen
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class Map {
|
class Map {
|
||||||
/**
|
/*
|
||||||
* Public Properties
|
* Public Properties
|
||||||
*/
|
*/
|
||||||
public $index = -1;
|
public $index = -1;
|
||||||
|
@ -14,12 +14,14 @@ use ManiaControl\Players\Player;
|
|||||||
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class offering commands to manage maps
|
* Class offering Commands to manage Maps
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class MapCommands implements CommandListener, ManialinkPageAnswerListener, CallbackListener {
|
class MapCommands implements CommandListener, ManialinkPageAnswerListener, CallbackListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const ACTION_OPEN_MAPLIST = 'MapCommands.OpenMapList';
|
const ACTION_OPEN_MAPLIST = 'MapCommands.OpenMapList';
|
||||||
@ -27,7 +29,7 @@ class MapCommands implements CommandListener, ManialinkPageAnswerListener, Callb
|
|||||||
const ACTION_RESTART_MAP = 'MapCommands.RestartMap';
|
const ACTION_RESTART_MAP = 'MapCommands.RestartMap';
|
||||||
const ACTION_SKIP_MAP = 'MapCommands.NextMap';
|
const ACTION_SKIP_MAP = 'MapCommands.NextMap';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -30,9 +30,11 @@ use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
|||||||
* MapList Widget Class
|
* MapList Widget Class
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class MapList implements ManialinkPageAnswerListener, CallbackListener {
|
class MapList implements ManialinkPageAnswerListener, CallbackListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const ACTION_UPDATE_MAP = 'MapList.UpdateMap';
|
const ACTION_UPDATE_MAP = 'MapList.UpdateMap';
|
||||||
@ -47,7 +49,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
|
|||||||
const DEFAULT_KARMA_PLUGIN = 'KarmaPlugin';
|
const DEFAULT_KARMA_PLUGIN = 'KarmaPlugin';
|
||||||
const DEFAULT_CUSTOM_VOTE_PLUGIN = 'CustomVotesPlugin';
|
const DEFAULT_CUSTOM_VOTE_PLUGIN = 'CustomVotesPlugin';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -19,6 +19,8 @@ use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
|||||||
* Manager for Maps
|
* Manager for Maps
|
||||||
*
|
*
|
||||||
* @author kremsy & steeffeen
|
* @author kremsy & steeffeen
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class MapManager implements CallbackListener {
|
class MapManager implements CallbackListener {
|
||||||
/*
|
/*
|
||||||
|
@ -14,9 +14,11 @@ use ManiaControl\Players\Player;
|
|||||||
* MapQueue Class
|
* MapQueue Class
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class MapQueue implements CallbackListener, CommandListener {
|
class MapQueue implements CallbackListener, CommandListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const CB_MAPQUEUE_CHANGED = 'MapQueue.MapQueueBoxChanged';
|
const CB_MAPQUEUE_CHANGED = 'MapQueue.MapQueueBoxChanged';
|
||||||
@ -27,8 +29,9 @@ class MapQueue implements CallbackListener, CommandListener {
|
|||||||
|
|
||||||
const ADMIN_COMMAND_CLEAR_MAPQUEUE = 'clearmapqueue';
|
const ADMIN_COMMAND_CLEAR_MAPQUEUE = 'clearmapqueue';
|
||||||
const ADMIN_COMMAND_CLEAR_JUKEBOX = 'clearjukebox';
|
const ADMIN_COMMAND_CLEAR_JUKEBOX = 'clearjukebox';
|
||||||
/**
|
|
||||||
* Private properties
|
/*
|
||||||
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
private $queuedMaps = array();
|
private $queuedMaps = array();
|
||||||
@ -241,5 +244,4 @@ class MapQueue implements CallbackListener, CommandListener {
|
|||||||
var_dump($map->name);
|
var_dump($map->name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
|
@ -8,10 +8,12 @@ use ManiaControl\Formatter;
|
|||||||
* Player Model Class
|
* Player Model Class
|
||||||
*
|
*
|
||||||
* @author kremsy & steeffeen
|
* @author kremsy & steeffeen
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class Player {
|
class Player {
|
||||||
/**
|
/*
|
||||||
* Public properties
|
* Public Properties
|
||||||
*/
|
*/
|
||||||
public $index = -1;
|
public $index = -1;
|
||||||
public $pid = -1;
|
public $pid = -1;
|
||||||
@ -56,7 +58,6 @@ class Player {
|
|||||||
public $autoTarget = false;
|
public $autoTarget = false;
|
||||||
public $currentTargetId = 0;
|
public $currentTargetId = 0;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct a player from ManiaPlanet Player structure
|
* Construct a player from ManiaPlanet Player structure
|
||||||
*
|
*
|
||||||
@ -114,7 +115,6 @@ class Player {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if player is not a real player
|
* Check if player is not a real player
|
||||||
*
|
*
|
||||||
|
@ -14,12 +14,14 @@ use ManiaControl\Manialinks\ManialinkManager;
|
|||||||
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PlayerActions Class
|
* Player Actions Class
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class PlayerActions {
|
class PlayerActions {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const TEAM_BLUE = 0;
|
const TEAM_BLUE = 0;
|
||||||
@ -29,7 +31,7 @@ class PlayerActions {
|
|||||||
const SPECTATOR_PLAYER = 2;
|
const SPECTATOR_PLAYER = 2;
|
||||||
const SPECTATOR_BUT_KEEP_SELECTABLE = 3;
|
const SPECTATOR_BUT_KEEP_SELECTABLE = 3;
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Permission Setting Constants
|
* Permission Setting Constants
|
||||||
*/
|
*/
|
||||||
const SETTING_PERMISSION_FORCE_PLAYER_PLAY = 'Force Player to Play';
|
const SETTING_PERMISSION_FORCE_PLAYER_PLAY = 'Force Player to Play';
|
||||||
@ -40,7 +42,7 @@ class PlayerActions {
|
|||||||
const SETTING_PERMISSION_KICK_PLAYER = 'Kick Player';
|
const SETTING_PERMISSION_KICK_PLAYER = 'Kick Player';
|
||||||
const SETTING_PERMISSION_BAN_PLAYER = 'Ban Player';
|
const SETTING_PERMISSION_BAN_PLAYER = 'Ban Player';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -16,9 +16,11 @@ use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
|||||||
* Class offering various Admin Commands related to Players
|
* Class offering various Admin Commands related to Players
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class PlayerCommands implements CommandListener, ManialinkPageAnswerListener, CallbackListener {
|
class PlayerCommands implements CommandListener, ManialinkPageAnswerListener, CallbackListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const ACTION_BALANCE_TEAMS = 'PlayerCommands.BalanceTeams';
|
const ACTION_BALANCE_TEAMS = 'PlayerCommands.BalanceTeams';
|
||||||
@ -26,7 +28,7 @@ class PlayerCommands implements CommandListener, ManialinkPageAnswerListener, Ca
|
|||||||
const SETTING_PERMISSION_ADD_BOT = 'Add Bot';
|
const SETTING_PERMISSION_ADD_BOT = 'Add Bot';
|
||||||
const SETTING_PERMISSION_TEAM_BALANCE = 'Balance Teams';
|
const SETTING_PERMISSION_TEAM_BALANCE = 'Balance Teams';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -19,15 +19,17 @@ use ManiaControl\Statistics\StatisticManager;
|
|||||||
* Player Detailed Page
|
* Player Detailed Page
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class PlayerDetailed {
|
class PlayerDetailed {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const STATS_PER_COLUMN = 13;
|
const STATS_PER_COLUMN = 13;
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
|
||||||
|
@ -29,9 +29,11 @@ use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
|||||||
* PlayerList Widget Class
|
* PlayerList Widget Class
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class PlayerList implements ManialinkPageAnswerListener, CallbackListener, TimerListener {
|
class PlayerList implements ManialinkPageAnswerListener, CallbackListener, TimerListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const ACTION_FORCE_RED = 'PlayerList.ForceRed';
|
const ACTION_FORCE_RED = 'PlayerList.ForceRed';
|
||||||
@ -57,7 +59,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener, Timer
|
|||||||
const SHOWN_MAIN_WINDOW = -1;
|
const SHOWN_MAIN_WINDOW = -1;
|
||||||
const MAX_PLAYERS_PER_PAGE = 15;
|
const MAX_PLAYERS_PER_PAGE = 15;
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -15,9 +15,11 @@ use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
|||||||
* Class managing Players
|
* Class managing Players
|
||||||
*
|
*
|
||||||
* @author kremsy & steeffeen
|
* @author kremsy & steeffeen
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class PlayerManager implements CallbackListener, TimerListener {
|
class PlayerManager implements CallbackListener, TimerListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const CB_PLAYERCONNECT = 'PlayerManagerCallback.PlayerConnect';
|
const CB_PLAYERCONNECT = 'PlayerManagerCallback.PlayerConnect';
|
||||||
@ -28,7 +30,7 @@ class PlayerManager implements CallbackListener, TimerListener {
|
|||||||
const STAT_JOIN_COUNT = 'Joins';
|
const STAT_JOIN_COUNT = 'Joins';
|
||||||
const STAT_SERVERTIME = 'Servertime';
|
const STAT_SERVERTIME = 'Servertime';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Public Properties
|
* Public Properties
|
||||||
*/
|
*/
|
||||||
public $playerActions = null;
|
public $playerActions = null;
|
||||||
@ -38,7 +40,7 @@ class PlayerManager implements CallbackListener, TimerListener {
|
|||||||
public $adminLists = null;
|
public $adminLists = null;
|
||||||
public $players = array();
|
public $players = array();
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -8,9 +8,11 @@ use ManiaControl\ManiaControl;
|
|||||||
* Interface for ManiaControl Plugins
|
* Interface for ManiaControl Plugins
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
interface Plugin {
|
interface Plugin {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const PLUGIN_INTERFACE = __CLASS__;
|
const PLUGIN_INTERFACE = __CLASS__;
|
||||||
|
@ -10,15 +10,17 @@ use ManiaControl\Manialinks\ManialinkPageAnswerListener;
|
|||||||
* Class managing Plugins
|
* Class managing Plugins
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class PluginManager {
|
class PluginManager {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const TABLE_PLUGINS = 'mc_plugins';
|
const TABLE_PLUGINS = 'mc_plugins';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
private $pluginMenu = null;
|
private $pluginMenu = null;
|
||||||
|
@ -21,12 +21,14 @@ use ManiaControl\Manialinks\ManialinkPageAnswerListener;
|
|||||||
use ManiaControl\Players\Player;
|
use ManiaControl\Players\Player;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configurator for enabling and disabling plugins
|
* Configurator for enabling and disabling Plugins
|
||||||
*
|
*
|
||||||
* @author steeffeen
|
* @author steeffeen
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class PluginMenu implements CallbackListener, ConfiguratorMenu, ManialinkPageAnswerListener {
|
class PluginMenu implements CallbackListener, ConfiguratorMenu, ManialinkPageAnswerListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const ACTION_PREFIX_ENABLEPLUGIN = 'PluginMenu.Enable.';
|
const ACTION_PREFIX_ENABLEPLUGIN = 'PluginMenu.Enable.';
|
||||||
@ -37,8 +39,8 @@ class PluginMenu implements CallbackListener, ConfiguratorMenu, ManialinkPageAns
|
|||||||
const ACTION_BACK_TO_PLUGINS = 'PluginMenu.BackToPlugins';
|
const ACTION_BACK_TO_PLUGINS = 'PluginMenu.BackToPlugins';
|
||||||
const SETTING_PERMISSION_CHANGE_PLUGIN_SETTINGS = 'Change Plugin Settings';
|
const SETTING_PERMISSION_CHANGE_PLUGIN_SETTINGS = 'Change Plugin Settings';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
private $settingsClass = ''; //TODO needs to be improved
|
private $settingsClass = ''; //TODO needs to be improved
|
||||||
|
@ -6,10 +6,12 @@ namespace ManiaControl\Server;
|
|||||||
* Model Class holding the Server Config
|
* Model Class holding the Server Config
|
||||||
*
|
*
|
||||||
* @author steeffeen
|
* @author steeffeen
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class Config {
|
class Config {
|
||||||
/*
|
/*
|
||||||
* Public properties
|
* Public Properties
|
||||||
*/
|
*/
|
||||||
public $id = null;
|
public $id = null;
|
||||||
public $host = null;
|
public $host = null;
|
||||||
|
@ -1,24 +1,28 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Class managing Rankings
|
|
||||||
*
|
|
||||||
* @author steeffeen & kremsy
|
|
||||||
*/
|
|
||||||
namespace ManiaControl\Server;
|
|
||||||
|
|
||||||
|
namespace ManiaControl\Server;
|
||||||
|
|
||||||
use ManiaControl\Callbacks\CallbackListener;
|
use ManiaControl\Callbacks\CallbackListener;
|
||||||
use ManiaControl\Callbacks\CallbackManager;
|
use ManiaControl\Callbacks\CallbackManager;
|
||||||
use ManiaControl\ManiaControl;
|
use ManiaControl\ManiaControl;
|
||||||
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class managing Rankings
|
||||||
|
*
|
||||||
|
* @author kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
|
*/
|
||||||
class RankingManager implements CallbackListener {
|
class RankingManager implements CallbackListener {
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $rankings = array();
|
private $rankings = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Get Rankings
|
||||||
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function getRankings() {
|
public function getRankings() {
|
||||||
|
@ -8,12 +8,13 @@ use ManiaControl\ManiaControl;
|
|||||||
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class providing Information about theconnected ManiaPlanet Server
|
* Class providing Access to the connected ManiaPlanet Server
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class Server implements CallbackListener {
|
class Server implements CallbackListener {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
@ -21,7 +22,7 @@ class Server implements CallbackListener {
|
|||||||
const CB_TEAM_MODE_CHANGED = 'ServerCallback.TeamModeChanged';
|
const CB_TEAM_MODE_CHANGED = 'ServerCallback.TeamModeChanged';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Public properties
|
* Public Properties
|
||||||
*/
|
*/
|
||||||
public $config = null;
|
public $config = null;
|
||||||
public $index = -1;
|
public $index = -1;
|
||||||
@ -36,7 +37,7 @@ class Server implements CallbackListener {
|
|||||||
public $rankingManager = null;
|
public $rankingManager = null;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Private properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
private $teamMode = false;
|
private $teamMode = false;
|
||||||
|
@ -16,12 +16,14 @@ use ManiaControl\Players\Player;
|
|||||||
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class offering various commands related to the dedicated server
|
* Class offering various Commands related to the Dedicated Server
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class ServerCommands implements CallbackListener, CommandListener, ManialinkPageAnswerListener, TimerListener {
|
class ServerCommands implements CallbackListener, CommandListener, ManialinkPageAnswerListener, TimerListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const ACTION_SET_PAUSE = 'ServerCommands.SetPause';
|
const ACTION_SET_PAUSE = 'ServerCommands.SetPause';
|
||||||
@ -36,8 +38,8 @@ class ServerCommands implements CallbackListener, CommandListener, ManialinkPage
|
|||||||
const SETTING_PERMISSION_SHUTDOWN_SERVER = 'Shutdown Server';
|
const SETTING_PERMISSION_SHUTDOWN_SERVER = 'Shutdown Server';
|
||||||
const SETTING_PERMISSION_CHANGE_SERVERSETTINGS = 'Change ServerSettings';
|
const SETTING_PERMISSION_CHANGE_SERVERSETTINGS = 'Change ServerSettings';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
private $serverShutdownTime = -1;
|
private $serverShutdownTime = -1;
|
||||||
|
@ -12,15 +12,17 @@ use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
|||||||
* Class reporting ManiaControl Usage for the Server
|
* Class reporting ManiaControl Usage for the Server
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class UsageReporter implements TimerListener {
|
class UsageReporter implements TimerListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const UPDATE_MINUTE_COUNT = 10;
|
const UPDATE_MINUTE_COUNT = 10;
|
||||||
const SETTING_DISABLE_USAGE_REPORTING = 'Disable Usage Reporting';
|
const SETTING_DISABLE_USAGE_REPORTING = 'Disable Usage Reporting';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -10,9 +10,11 @@ use ManiaControl\ManiaControl;
|
|||||||
* Class managing Settings and Configurations
|
* Class managing Settings and Configurations
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class SettingManager implements CallbackListener {
|
class SettingManager implements CallbackListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const TABLE_SETTINGS = 'mc_settings';
|
const TABLE_SETTINGS = 'mc_settings';
|
||||||
@ -23,8 +25,8 @@ class SettingManager implements CallbackListener {
|
|||||||
const TYPE_ARRAY = 'array';
|
const TYPE_ARRAY = 'array';
|
||||||
const CB_SETTINGS_CHANGED = 'SettingManager.SettingsChanged';
|
const CB_SETTINGS_CHANGED = 'SettingManager.SettingsChanged';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
private $arrayDelimiter = ';;';
|
private $arrayDelimiter = ';;';
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace ManiaControl\Statistics;
|
namespace ManiaControl\Statistics;
|
||||||
|
|
||||||
|
|
||||||
use FML\Controls\Control;
|
use FML\Controls\Control;
|
||||||
use FML\Controls\Frame;
|
use FML\Controls\Frame;
|
||||||
use FML\Controls\Label;
|
use FML\Controls\Label;
|
||||||
@ -23,14 +22,21 @@ use ManiaControl\Manialinks\ManialinkPageAnswerListener;
|
|||||||
use ManiaControl\Players\Player;
|
use ManiaControl\Players\Player;
|
||||||
use ManiaControl\Players\PlayerManager;
|
use ManiaControl\Players\PlayerManager;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Simple Stats List Class
|
||||||
|
*
|
||||||
|
* @author kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
|
*/
|
||||||
class SimpleStatsList implements ManialinkPageAnswerListener, CallbackListener, CommandListener {
|
class SimpleStatsList implements ManialinkPageAnswerListener, CallbackListener, CommandListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const ACTION_OPEN_STATSLIST = 'SimpleStatsList.OpenStatsList';
|
const ACTION_OPEN_STATSLIST = 'SimpleStatsList.OpenStatsList';
|
||||||
const ACTION_SORT_STATS = 'SimpleStatsList.SortStats';
|
const ACTION_SORT_STATS = 'SimpleStatsList.SortStats';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Statistic Collector Class
|
|
||||||
*
|
|
||||||
* @author steeffeen & kremsy
|
|
||||||
*/
|
|
||||||
namespace ManiaControl\Statistics;
|
|
||||||
|
|
||||||
|
namespace ManiaControl\Statistics;
|
||||||
|
|
||||||
use ManiaControl\Callbacks\CallbackListener;
|
use ManiaControl\Callbacks\CallbackListener;
|
||||||
use ManiaControl\Callbacks\CallbackManager;
|
use ManiaControl\Callbacks\CallbackManager;
|
||||||
@ -13,8 +8,15 @@ use ManiaControl\ManiaControl;
|
|||||||
use ManiaControl\Players\Player;
|
use ManiaControl\Players\Player;
|
||||||
use ManiaControl\Players\PlayerManager;
|
use ManiaControl\Players\PlayerManager;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Statistic Collector Class
|
||||||
|
*
|
||||||
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
|
*/
|
||||||
class StatisticCollector implements CallbackListener {
|
class StatisticCollector implements CallbackListener {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const SETTING_COLLECT_STATS_ENABLED = 'Collect Stats Enabled';
|
const SETTING_COLLECT_STATS_ENABLED = 'Collect Stats Enabled';
|
||||||
@ -49,7 +51,7 @@ class StatisticCollector implements CallbackListener {
|
|||||||
const WEAPON_NUCLEUS = 3;
|
const WEAPON_NUCLEUS = 3;
|
||||||
const WEAPON_ARROW = 5;
|
const WEAPON_ARROW = 5;
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -9,9 +9,11 @@ use ManiaControl\Players\Player;
|
|||||||
* Statistic Manager Class
|
* Statistic Manager Class
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class StatisticManager {
|
class StatisticManager {
|
||||||
/**
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const TABLE_STATMETADATA = 'mc_statmetadata';
|
const TABLE_STATMETADATA = 'mc_statmetadata';
|
||||||
@ -27,13 +29,13 @@ class StatisticManager {
|
|||||||
const SPECIAL_STAT_ROCKET_ACC = 'Rocket Accuracy';
|
const SPECIAL_STAT_ROCKET_ACC = 'Rocket Accuracy';
|
||||||
const SPECIAL_STAT_ARROW_ACC = 'Arrow Accuracy';
|
const SPECIAL_STAT_ARROW_ACC = 'Arrow Accuracy';
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Public Properties
|
* Public Properties
|
||||||
*/
|
*/
|
||||||
public $statisticCollector = null;
|
public $statisticCollector = null;
|
||||||
public $simpleStatsList = null;
|
public $simpleStatsList = null;
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
@ -1,22 +1,32 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
namespace ManiaControl\Update;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UpdateStructure
|
* UpdateStructure
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
namespace ManiaControl\Update;
|
|
||||||
|
|
||||||
|
|
||||||
class UpdateData {
|
class UpdateData {
|
||||||
|
/*
|
||||||
|
* Public Properties
|
||||||
|
*/
|
||||||
public $version = 0;
|
public $version = 0;
|
||||||
public $channel = "";
|
public $channel = "";
|
||||||
public $url = "";
|
public $url = "";
|
||||||
public $releaseDate = "";
|
public $releaseDate = "";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Construct new Update Data
|
||||||
|
*
|
||||||
|
* @param unknown $updateData
|
||||||
|
*/
|
||||||
public function __construct($updateData) {
|
public function __construct($updateData) {
|
||||||
$this->version = $updateData->version;
|
$this->version = $updateData->version;
|
||||||
$this->channel = $updateData->channel;
|
$this->channel = $updateData->channel;
|
||||||
$this->url = $updateData->url;
|
$this->url = $updateData->url;
|
||||||
$this->releaseDate = $updateData->release_date;
|
$this->releaseDate = $updateData->release_date;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,8 @@ use ManiaControl\Plugins\Plugin;
|
|||||||
* Manager checking for ManiaControl Core and Plugin Updates
|
* Manager checking for ManiaControl Core and Plugin Updates
|
||||||
*
|
*
|
||||||
* @author steeffeen & kremsy
|
* @author steeffeen & kremsy
|
||||||
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||||
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class UpdateManager implements CallbackListener, CommandListener, TimerListener {
|
class UpdateManager implements CallbackListener, CommandListener, TimerListener {
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user