\ManiaControl\CallbacksTimerManager

Class for managing Timed Callbacks

Summary

Methods
Properties
Constants
getUsageInformation()
__construct()
registerOneTimeListening()
registerTimerListening()
addTimerListening()
unregisterTimerListening()
unregisterTimerListenings()
manageTimings()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$maniaControl
$timerListenings
N/A

Properties

Methods

getUsageInformation()

getUsageInformation() 

Gets Information about the Class, and a List of the Public Method

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new Timer Manager

Parameters

\ManiaControl\ManiaControl $maniaControl

registerOneTimeListening()

registerOneTimeListening(\ManiaControl\Callbacks\TimerListener  $listener, string  $method, float  $milliSeconds) 

Registers a One Time Listening

Parameters

\ManiaControl\Callbacks\TimerListener $listener
string $method
float $milliSeconds

registerTimerListening()

registerTimerListening(\ManiaControl\Callbacks\TimerListener  $listener, string  $method, float  $milliSeconds, boolean  $oneTime = false) : boolean

Register a Timer Listening, note < 10ms it can get inaccurate

Parameters

\ManiaControl\Callbacks\TimerListener $listener
string $method
float $milliSeconds
boolean $oneTime

Returns

boolean

addTimerListening()

addTimerListening(\ManiaControl\Callbacks\TimerListening  $timerListening) 

Add a Listening to the current List of managed Timers

Parameters

\ManiaControl\Callbacks\TimerListening $timerListening

unregisterTimerListening()

unregisterTimerListening(\ManiaControl\Callbacks\TimerListener  $listener, string  $method) : boolean

Unregister a Timer Listening

Parameters

\ManiaControl\Callbacks\TimerListener $listener
string $method

Returns

boolean

unregisterTimerListenings()

unregisterTimerListenings(\ManiaControl\Callbacks\TimerListener  $listener) : boolean

Unregister a Timer Listener

Parameters

\ManiaControl\Callbacks\TimerListener $listener

Returns

boolean

manageTimings()

manageTimings() 

Manage the Timings on every ms