added license and copyright annotations

improved phpdoc
This commit is contained in:
Steffen Schröder
2014-04-12 12:14:37 +02:00
parent 07a63cf518
commit 08cad46cfc
61 changed files with 345 additions and 204 deletions

View File

@ -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__;

View File

@ -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();

View File

@ -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;

View File

@ -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__;
}
}

View File

@ -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 {
}
}
}
}
}