]> git.cworth.org Git - empires-server/blobdiff - game.js
Generalize the handling of the /move request
[empires-server] / game.js
diff --git a/game.js b/game.js
index faef43798b79482e4f2e0cdc1656ec66718601c9..f1f764fa1968425d597e4e2ab47e4b8d916650a8 100644 (file)
--- a/game.js
+++ b/game.js
@@ -78,6 +78,10 @@ class Game {
     }
   }
 
+  broadcast_move(move) {
+    this.broadcast_event("move", move);
+  }
+
 }
 
 module.exports = Game;