|
|
|
@ -11,7 +11,6 @@ const Controls = function() { |
|
|
|
|
document.addEventListener('L-conn-error', this.msgConnectionError.bind(this)); |
|
|
|
|
document.addEventListener('L-complete', this.msgComplete.bind(this)); |
|
|
|
|
document.addEventListener('L-join', this.msgJoin.bind(this)); |
|
|
|
|
document.addEventListener('L-newround', this.msgNewRound.bind(this)); |
|
|
|
|
document.addEventListener('L-replay-complete', this.msgReplayComplete.bind(this)); |
|
|
|
|
document.addEventListener('L-skip', this.msgSkip.bind(this)); |
|
|
|
|
document.addEventListener('L-stack', this.msgStack.bind(this)); |
|
|
|
@ -19,6 +18,7 @@ const Controls = function() { |
|
|
|
|
document.addEventListener('G-connected', this.msgConnected.bind(this));
|
|
|
|
|
document.addEventListener('G-countdown', this.msgCountdown.bind(this));
|
|
|
|
|
document.addEventListener('G-full', this.msgFull.bind(this));
|
|
|
|
|
document.addEventListener('G-newround', this.msgNewRound.bind(this)); |
|
|
|
|
document.addEventListener('G-players', this.msgPlayers.bind(this));
|
|
|
|
|
document.addEventListener('G-state', this.msgState.bind(this)); |
|
|
|
|
document.addEventListener('G-win', this.msgWin.bind(this)); |
|
|
|
@ -199,7 +199,6 @@ Controls.prototype.msgWin = function(evt) { |
|
|
|
|
Controls.prototype.msgNewRound = function() { |
|
|
|
|
this.winningMoveCount = Infinity; |
|
|
|
|
document.getElementById('controls-win-next').style.display = 'none'; |
|
|
|
|
// SHOW ARROWS IN GRID
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
Controls.prototype.msgReplayComplete = function() { |
|
|
|
|