added license and copyright annotations
improved phpdoc
This commit is contained in:
@ -6,9 +6,11 @@ namespace ManiaControl\Callbacks;
|
||||
* Interface for CallbackListener
|
||||
*
|
||||
* @author steeffeen & kremsy
|
||||
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
interface CallbackListener {
|
||||
/**
|
||||
/*
|
||||
* Constants
|
||||
*/
|
||||
const CALLBACKLISTENER_INTERFACE = __CLASS__;
|
||||
|
@ -8,9 +8,11 @@ use ManiaControl\ManiaControl;
|
||||
* Class for managing Server and ManiaControl Callbacks
|
||||
*
|
||||
* @author steeffeen & kremsy
|
||||
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class CallbackManager {
|
||||
/**
|
||||
/*
|
||||
* Constants
|
||||
*/
|
||||
// ManiaControl callbacks
|
||||
@ -44,12 +46,12 @@ class CallbackManager {
|
||||
const CB_TM_PLAYERINCOHERENCE = 'TrackMania.PlayerIncoherence';
|
||||
|
||||
/*
|
||||
* Public proeprties
|
||||
* Public Properties
|
||||
*/
|
||||
public $shootManiaCallbacks = null;
|
||||
|
||||
/*
|
||||
* Private properties
|
||||
* Private Properties
|
||||
*/
|
||||
private $maniaControl = null;
|
||||
private $callbackListeners = array();
|
||||
|
@ -8,6 +8,8 @@ use ManiaControl\ManiaControl;
|
||||
* Class handling and parsing ShootMania Callbacks
|
||||
*
|
||||
* @author steeffeen
|
||||
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class ShootManiaCallbacks implements CallbackListener {
|
||||
/*
|
||||
@ -23,7 +25,7 @@ class ShootManiaCallbacks implements CallbackListener {
|
||||
const SCB_TIMEATTACK_ONFINISH = 'TimeAttack_OnFinish';
|
||||
|
||||
/*
|
||||
* Private properties
|
||||
* Private Properties
|
||||
*/
|
||||
private $maniaControl = null;
|
||||
|
||||
|
@ -1,15 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace ManiaControl\Callbacks;
|
||||
|
||||
/**
|
||||
* 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 {
|
||||
/**
|
||||
/*
|
||||
* Constants
|
||||
*/
|
||||
const TIMERLISTENER_INTERFACE = __CLASS__;
|
||||
}
|
||||
}
|
||||
|
@ -1,15 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* Class for managing Timers
|
||||
*
|
||||
* @author steeffeen & kremsy
|
||||
*/
|
||||
namespace ManiaControl\Callbacks;
|
||||
|
||||
namespace ManiaControl\Callbacks;
|
||||
|
||||
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 {
|
||||
/*
|
||||
* Private Properties
|
||||
*/
|
||||
private $maniaControl = null;
|
||||
private $timerListenings = array();
|
||||
|
||||
@ -22,7 +27,6 @@ class TimerManager {
|
||||
$this->maniaControl = $maniaControl;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Registers a One Time Listening
|
||||
*
|
||||
@ -129,4 +133,4 @@ class TimerManager {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user