aboutsummaryrefslogtreecommitdiff
path: root/draughts/public/javascripts/messages.js
diff options
context:
space:
mode:
Diffstat (limited to 'draughts/public/javascripts/messages.js')
-rw-r--r--draughts/public/javascripts/messages.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/draughts/public/javascripts/messages.js b/draughts/public/javascripts/messages.js
index 7f70576..94837d8 100644
--- a/draughts/public/javascripts/messages.js
+++ b/draughts/public/javascripts/messages.js
@@ -1,5 +1,7 @@
(function (exports) {
- exports.START = 0 // Server -> Client :: Inform the client that the game has started
- exports.RESIGN = 1 // Server <-> Client :: Inform the server/opponent that the client resigned
- exports.DISCONNECT = 2 // Server -> Client :: Inform the client that the opponent disconnected
+ exports.COMMENCE = 0 // S --> C :: Inform the client that they may commence their turn
+ exports.RESIGN = 1 // S <-> C :: Inform the server/opponent that the client resigned
+ exports.DISCONNECT = 2 // S --> C :: Inform the client that the opponent disconnected
+ exports.MOVED = 3 // S <-> C :: Inform the server/opponent that the client has moved a piece
+ exports.WELCOME = 4 // S --> C :: Inform the client of their color when they join the game
})(typeof(exports) == "undefined" ? (this.Messages = {}) : exports)