Class: ReadyController

ReadyController()

Ready system: The ready mechanism protects the players from being assigned to a match with settings they didn't explicitly agree with. It shall be technically possible to start a networked game until all participating players formally agree with the chosen settings. Therefore assume the readystate from the user interface rather than trusting the server whether the current player is ready. The server may set readiness to false but not to true. The ReadyController class stores the ready state of the current player and fires an event if the agreed settings changed.

Constructor

new ReadyController()

Source:

Members

NotReady

Source:

Ready

Source:

StayReady

Source:

gameSettingsController

Source:

playerAssignmentsController

Source:

previousAssignments

Source:

readyState

Source:

readyState

Source:

resetReadyHandlers

Source:

Methods

getLocalReadyState()

Source:

onClientJoin()

Source:

onClientLeave()

Source:

onPlayerAssignmentsChange()

Source:

onReadyMessage()

Source:

onSettingsChange()

Source:

registerResetReadyHandler()

Source:

resetReady()

Source:

setReady()

Source: