- FightSettings ℗
- Fight ℗
- FightHistory ℗
- Opponent ℗
- OpponentGroup ℗
- Person ℗
- Playlist ℗
- Entry ℗
- Tournament ℗
- FightEmitter ℗
- FightEmitterLocal ℗
- FightReceiver ℗
- FightReceiverLocal ℗
- LocalBroker ℗
- Repertoire ℗
- Scoreboard ℗
- Direzione.FightSettings :
object
- Direzione.Fight :
object
- Direzione.FightHistory :
object
- Direzione.Opponent :
object
- Direzione.OpponentGroup :
object
- Direzione.Person :
object
- Direzione.Playlist :
object
- Direzione :
object
- Direzione.FightEmitter :
object
- Direzione.FightEmitterLocal :
object
- Direzione.FightReceiver :
object
- Direzione.FightReceiverLocal :
object
- Direzione.LocalBroker :
object
- Direzione.RoundRobinTournamentIterator :
object
- Direzione.Utils :
object
- Direzione.Repertoire :
object
- Direzione.Scoreboard :
object
Kind: global class Access: private
Puts the settings to the local storage
Kind: instance method of FightSettings
Access: public
Fetches the settings from the local storage and applies them to this object
Kind: instance method of FightSettings
Access: public
Kind: global class Access: private
- Fight ℗
- new Fight(settings, whiteOpponent, redOpponent, noHistory)
- .getHistory() ⇒
FightHistory
- .getCountDown() ⇒
DurataSingleValue
|false
- .getCountUp() ⇒
DurataSingleValue
|false
- .getWhiteOpponent() ⇒
Opponent
- .getRedOpponent() ⇒
Opponent
- .isStopped() ⇒
Boolean
- .invertSide() ⇒
String
- .isRunning() ⇒
Boolean
- .getTimeLeft() ⇒
Integer
℗ - .on(type, callback) ℗
- .clearListeners(externalOnly)
- .reset(forceMS)
- .togglePauseResume() ℗
- .startPauseResume(forceMS) ℗
- .osaeKomi(side, forceMS) ℗
- .stop(msDownForce, msUpForce, side) ℗
- .toketa(forceMS) ℗
- "reset"
- "startPauseResume"
- "osaeKomi"
- "stop"
- "toketa"
- "removeCountUp"
Param | Type |
---|---|
settings | FightSettings |
whiteOpponent | Opponent |
redOpponent | Opponent |
noHistory | Boolean |
fight.getHistory() ⇒ FightHistory
Returns the object that holds the fight history
Kind: instance method of Fight
Access: public
Returns the object to process countdown
Kind: instance method of Fight
Access: public
Returns the object to process count up
Kind: instance method of Fight
Access: public
fight.getWhiteOpponent() ⇒ Opponent
Returns the object to manage the judika on white side
Kind: instance method of Fight
Access: public
fight.getRedOpponent() ⇒ Opponent
Returns the object to manage the judika on red side
Kind: instance method of Fight
Access: public
Returns whether the fight is going on
Kind: instance method of Fight
Access: public
Inverts passed side; Makes left from right and right from left - keeps center ...
Kind: instance method of Fight
Access: public
Returns whether the fight is still going on
Kind: instance method of Fight
Access: public
Returns remainig milliseconds until the fight ends
Kind: instance method of Fight
Access: private
Registers an event-listener to this object
Kind: instance method of Fight
Access: private
Param | Type |
---|---|
type | String |
callback | function |
Removes all listeners of this object
Kind: instance method of Fight
Access: public
Param | Type | Description |
---|---|---|
externalOnly | Boolean |
Default true |
Resets the fight (Time and score to initial values)
Kind: instance method of Fight
Emits: reset
Access: public
Param | Type | Description |
---|---|---|
forceMS | Integer |
Optional - If this is passed to the function, the countdown will be forced to this millisecond value |
Toggles pause and resume for the countdown
Kind: instance method of Fight
Access: private
Starts, pauses or resumes the fight
Kind: instance method of Fight
Emits: startPauseResume
Access: private
Param | Type | Description |
---|---|---|
forceMS | Integer |
Optional milliseconds the countdown should be forced to |
Starts count up for osae komi
Kind: instance method of Fight
Emits: osaeKomi
Access: private
Param | Type | Description |
---|---|---|
side | String |
defines which opponent holds the other down ("red", "white" or "center") |
forceMS | Integer |
Milliseconds the count up should be forced to |
Stops the fight
Kind: instance method of Fight
Emits: stop
Access: private
Param | Type | Description |
---|---|---|
msDownForce | Integer |
Optional milliseconds the countdown should be forced to |
msUpForce | Integer |
Optional milliseconds the count up should be forced to |
side | String |
defines which opponent holds the other down ("red", "white" or "center") |
Pauses the count up for osae komi
Kind: instance method of Fight
Access: private
Param | Type | Description |
---|---|---|
forceMS | Integer |
Optional milliseconds the count up should be forced to |
Will be fired when the score and time of a fight has been reset
Kind: event emitted by Fight
Will be fired when countdown has been started, paused or resumed
Kind: event emitted by Fight
Will be fired when count up has been started
Kind: event emitted by Fight
Will be fired when the countdown has been stopped (fight ended)
Kind: event emitted by Fight
Will be fired when count up has been stopped
Kind: event emitted by Fight
Will be fired when count up has been removed
Kind: event emitted by Fight
Kind: global class Access: private
Param | Type |
---|---|
fight | Fight |
Kind: global class Access: private
- Opponent ℗
- new Opponent(person, score, penalty)
- .on(type, callback)
- .clearListeners()
- .getClubName() ⇒
String
- .getFullName() ⇒
String
- .getScore() ⇒
Integer
- .getShido() ⇒
Integer
- .addIppon()
- .addShido()
- .addWazari()
- .removeIppon()
- .removeShido()
- .removeWazari()
- .reset()
- .on(type, callback)
- "add"
- "remove"
- "reset"
Param | Type |
---|---|
person | Person |
score | Integer |
penalty | Integer |
Registers an event-listener to this object
Kind: instance method of Opponent
Access: public
Param | Type |
---|---|
type | String |
callback | function |
Removes all listerners of this object
Kind: instance method of Opponent
Access: public
Returns the name of the club, where the opponent is member of
Kind: instance method of Opponent
Access: public
Returns the firstname and lastname of the opponent
Kind: instance method of Opponent
Access: public
Returns the score of the opponent
Kind: instance method of Opponent
Access: public
Returns the penalty score of the opponent
Kind: instance method of Opponent
Access: public
Adds amount of points for ippon to score of the opponent
Kind: instance method of Opponent
Emits: add
Access: public
Adds a penalty point to the penalty score of the opponent
Kind: instance method of Opponent
Emits: add
Access: public
Adds amount of points for wazari to score of the opponent
Kind: instance method of Opponent
Emits: add
Access: public
Removes amount of points for ippon from score of the opponent
Kind: instance method of Opponent
Emits: remove
Access: public
Removes a penalty point from the penalty score of the opponent
Kind: instance method of Opponent
Emits: remove
Access: public
Removes amount of points for wazari from score of the opponent
Kind: instance method of Opponent
Emits: remove
Access: public
Resets the score and penalty of the opponent
Kind: instance method of Opponent
Emits: reset
Access: public
Registers an event-listener to this object
Kind: instance method of Opponent
Access: public
Param | Type |
---|---|
type | String |
callback | function |
Will be fired when score has been changed, when added
Kind: event emitted by Opponent
Will be fired when score has been changed, when removed
Kind: event emitted by Opponent
Will be fired when score has been reset
Kind: event emitted by Opponent
Kind: global class Access: private
Param | Type |
---|---|
name | String |
Kind: global class Access: private
- Person ℗
- new Person(firstName, lastName, club)
- .getClubName() ⇒
String
- .getFirstName() ⇒
String
- .getLastName() ⇒
String
- .getLockOut(ms)
- .getLockOut() ⇒
false
|Durata
- .reset()
Param | Type |
---|---|
firstName | String |
lastName | String |
club | String |
Returns the name of the club, where the Person is member of
Kind: instance method of Person
Access: public
Returns the firstname of the Person
Kind: instance method of Person
Access: public
Returns the lastname of the Person
Kind: instance method of Person
Access: public
Sets persons lock-out time in milliseconds
Kind: instance method of Person
Access: public
Param | Type |
---|---|
ms | Integer |
Returns the lock-out, if set
Kind: instance method of Person
Access: public
Resets the lock-out
Kind: instance method of Person
Access: public
Kind: global class Access: private
- Playlist ℗
- new Playlist()
- .empty() ⇒
Playlist
- .insert(fight) ⇒
int
- .find(callback, [fromIndex]) ⇒
Fight
|undefined
- .includes(searchElement, [fromIndex]) ⇒
Boolean
- .remove(fight, [fromIndex]) ⇒
Fight
- .next() ⇒
Fight
- .prev() ⇒
Fight
- .reset() ⇒
Playlist
Class to manage a list of fights as playlist
playlist.empty() ⇒ Playlist
Empty paylist
Kind: instance method of Playlist
Returns: Playlist
- - Returns the Playlist instance which this method is called
Access: public
Adds a fight object right after the cursor node of the playlist and returns the new length of the list
Kind: instance method of Playlist
Returns: int
- - The new length of the list
Access: public
Param | Type |
---|---|
fight | Fight |
playlist.find(callback, [fromIndex]) ⇒ Fight
| undefined
Returns the value of the first fight-element in the list that satisfies the provided testing function. Otherwise undefined is returned
Kind: instance method of Playlist
Returns: Fight
| undefined
- - A value in the list if a fight-element passes the test; otherwise, undefined
Access: public
Param | Type | Default | Description |
---|---|---|---|
callback | function |
Function to test for each fight-element | |
[fromIndex] | int |
0 |
The position in this list at which to begin searching for searchElement |
Determines whether a list includes a certain fight-element, returning true or false as appropriate
Kind: instance method of Playlist
Returns: Boolean
- - true if the searchElement found in the list; otherwise, false
Access: public
Param | Type | Default | Description |
---|---|---|---|
searchElement | Fight |
The fight-element to search for | |
[fromIndex] | int |
0 |
The position in this list at which to begin searching for searchElement |
playlist.remove(fight, [fromIndex]) ⇒ Fight
Removes a fight-element from the list
Kind: instance method of Playlist
Returns: Fight
- - Returns removed fight-element if found, undefined otherwise
Access: public
Param | Type | Default | Description |
---|---|---|---|
fight | Fight |
The fight-element to be removed from playlist | |
[fromIndex] | int |
0 |
The position in this list at which to begin searching for the fight-element |
playlist.next() ⇒ Fight
Moves cursor to the next entry and returns the fight-object in it
Kind: instance method of Playlist
Returns: Fight
- - Returns fight-object of next node to the cursor. If cursor reaches to the end, it returns undefined
Access: public
playlist.prev() ⇒ Fight
Moves cursor to the previous entry and returns the fight-object in it
Kind: instance method of Playlist
Returns: Fight
- - Returns fight-object of previous node to the cursor. If cursor reaches to the head, it returns undefined
Access: public
playlist.reset() ⇒ Playlist
Resets cursor to head
Kind: instance method of Playlist
Returns: Playlist
- - Returns the Playlist instance which this method is called
Access: public
Kind: global class Access: private
Class to manage the entries in the playlist
Param | Type |
---|---|
list | Playlist |
fight | Fight |
Kind: global class Access: private
Kind: global class Access: private
Param | Type |
---|---|
receiverID | String |
fight | Fight |
servers | Array |
Returns whether the connection to a FightReceiver is established
Kind: instance method of FightEmitter
Access: public
Returns the fight
Kind: instance method of FightEmitter
Access: public
Replaces the fight of this emitter and emits the new object
Kind: instance method of FightEmitter
Access: public
Trys to disconnect from the connected FightReceiver
Kind: instance method of FightEmitter
Access: public
Trys to connect to a FightReceiver with given ID
Kind: instance method of FightEmitter
Emits: establish
, disconnect
Access: public
Registers an event-listener to this object
Kind: instance method of FightEmitter
Access: public
Param | Type |
---|---|
type | String |
callback | function |
Will be fired when peer connection was disconnected
Kind: event emitted by FightEmitter
Will be fired when peer connection has been established
Kind: event emitted by FightEmitter
Kind: global class Access: private
Param | Type |
---|---|
receiverID | String |
fight | Fight |
Returns whether the connection to a FightReceiver is established
Kind: instance method of FightEmitterLocal
Access: public
Returns the fight
Kind: instance method of FightEmitterLocal
Access: public
Replaces the fight of this emitter and emits the new object
Kind: instance method of FightEmitterLocal
Access: public
Trys to disconnect from the connected FightReceiver
Kind: instance method of FightEmitterLocal
Access: public
Trys to connect to a FightReceiver with given ID
Kind: instance method of FightEmitterLocal
Emits: establish
, disconnect
Access: public
Registers an event-listener to this object
Kind: instance method of FightEmitterLocal
Access: public
Param | Type |
---|---|
type | String |
callback | function |
Will be fired when peer connection was disconnected
Kind: event emitted by FightEmitterLocal
Will be fired when peer connection has been established
Kind: event emitted by FightEmitterLocal
Kind: global class Access: private
Param | Type |
---|---|
receiverID | String |
viewConfig | Object |
servers | Array |
Returns whether the connection to a FightReceiver is established
Kind: instance method of FightReceiver
Access: public
Registers an event-listener to this object
Kind: instance method of FightReceiver
Access: public
Param | Type |
---|---|
type | String |
callback | function |
Will be fired when peer connection was disconnected
Kind: event emitted by FightReceiver
Will be fired when peer connection has been established
Kind: event emitted by FightReceiver
Kind: global class Access: private
Param | Type |
---|---|
receiverID | String |
viewConfig | Object |
Returns whether the connection to a FightReceiver is established
Kind: instance method of FightReceiverLocal
Access: public
Registers an event-listener to this object
Kind: instance method of FightReceiverLocal
Access: public
Param | Type |
---|---|
type | String |
callback | function |
Will be fired when peer connection was disconnected
Kind: event emitted by FightReceiverLocal
Will be fired when peer connection has been established
Kind: event emitted by FightReceiverLocal
Kind: global class Access: private
Kind: global class Access: private
Param | Type |
---|---|
playlistModel | Playlist |
viewConfig | Object |
Kind: global class Access: private
Param | Type |
---|---|
fightModel | Fight |
viewConfig | Object |
Starts the update process for the display
Kind: instance method of Scoreboard
Access: public
Stops the update process for the display
Kind: instance method of Scoreboard
Access: public
Replaces the present fight
Kind: instance method of Scoreboard
Access: public
Displays Names of opponents
Kind: instance method of Scoreboard
Access: public
Hides Names of opponents
Kind: instance method of Scoreboard
Access: public
Shuts the scoreboard display down
Kind: instance method of Scoreboard
Access: public
Kind: global namespace
Direzione.FightSettings.create() ⇒ FightSettings
Creates an object to manage settings to a fight
Kind: static method of Direzione.FightSettings
Kind: global namespace
Direzione.Fight.create(settings, thousandsSeparator, decimalCount, noHistory) ⇒ Fight
Creates an object to manage a fight.
Kind: static method of Direzione.Fight
Param | Type |
---|---|
settings | FightSettings |
thousandsSeparator | Opponent |
decimalCount | Opponent |
noHistory | Boolean |
Kind: global namespace
Direzione.FightHistory.create(fight) ⇒ FightHistory
Creates an object to manage a the history of a fight.
Kind: static method of Direzione.FightHistory
Param | Type |
---|---|
fight | Fight |
Kind: global namespace
Direzione.Opponent.create(person, score, penalty) ⇒ Opponent
Creates an object to manage a opponent (in a fight).
Kind: static method of Direzione.Opponent
Param | Type |
---|---|
person | Person |
score | Integer |
penalty | Integer |
Kind: global namespace
Direzione.OpponentGroup.create(name) ⇒ OpponentGroup
Creates an object to organize opponents in groups.
Kind: static method of Direzione.OpponentGroup
Param | Type |
---|---|
name | String |
Kind: global namespace
Direzione.Person.create(firstName, lastName, club) ⇒ Person
Creates an object to manage a fight.
Kind: static method of Direzione.Person
Param | Type |
---|---|
firstName | String |
lastName | String |
club | String |
Kind: global namespace
Direzione.Playlist.create() ⇒ Playlist
Creates an object of a double linked list holding fights and acts as playlist.
Kind: static method of Direzione.Playlist
Kind: global namespace
Kind: global namespace
Direzione.FightEmitter.create(receiverID, fight) ⇒ FightEmitter
Creates an object to emit fight events to a receiver.
Kind: static method of Direzione.FightEmitter
Param | Type |
---|---|
receiverID | String |
fight | Fight |
Kind: global namespace
Direzione.FightEmitterLocal.create(receiverID, fight) ⇒ FightEmitterLocal
Creates an object to emit fight events to a receiver.
Kind: static method of Direzione.FightEmitterLocal
Param | Type |
---|---|
receiverID | String |
fight | Fight |
Kind: global namespace
Direzione.FightReceiver.create(receiverID, viewConfig) ⇒ FightReceiver
Creates an object to receive scoreboard events from a emitter scoreboard.
Kind: static method of Direzione.FightReceiver
Param | Type |
---|---|
receiverID | String |
viewConfig | Object |
Kind: global namespace
Direzione.FightReceiverLocal.create(receiverID, viewConfig) ⇒ FightReceiverLocal
Creates an object to receive scoreboard events from a emitter scoreboard.
Kind: static method of Direzione.FightReceiverLocal
Param | Type |
---|---|
receiverID | String |
viewConfig | Object |
Kind: global namespace
Direzione.LocalBroker.create() ⇒ LocalBroker
Realizes a broker between two peers over the local storage
Kind: static method of Direzione.LocalBroker
Kind: global namespace
Creates an object to iterate through an array.
Kind: static method of Direzione.RoundRobinTournamentIterator
Param | Type |
---|---|
arr | Array |
Kind: global namespace
Loads a JS-file from a given path and passes the so (hopefully) loaded member variable "Direzione.translation" to the given callback-function
Kind: static method of Direzione.Utils
Access: public
Param | Type |
---|---|
path | String |
callback | function |
Kind: global namespace
Direzione.Repertoire.create(playlistModel, viewConfig) ⇒ Repertoire
Creates an object to update a scoreboard.
Kind: static method of Direzione.Repertoire
Param | Type |
---|---|
playlistModel | Playlist |
viewConfig | Object |
Kind: global namespace
Direzione.Scoreboard.create(fightModel, viewConfig) ⇒ Scoreboard
Creates an object to update a scoreboard.
Kind: static method of Direzione.Scoreboard
Param | Type |
---|---|
fightModel | Fight |
viewConfig | Object |