]> git.cworth.org Git - empires-server/commit
Add common handle_events code to the Game class
authorCarl Worth <cworth@cworth.org>
Sat, 30 May 2020 03:39:56 +0000 (20:39 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 30 May 2020 03:39:56 +0000 (20:39 -0700)
commitea14cbbefb26afd558aff8329d92f1a7b9442bac
tree074b510c3ae4ad829ffc44d8ffc5e1fcda046eb9
parent76e5097689002f03c721c388e2ca71c52abf3354
Add common handle_events code to the Game class

Again, putting code into the parent class to reduce duplication that
is in the Empires and TicTacToe classes. In Empires, there's a little
extra work to be done when a client connects, so we shadow the parent
function, call super.handle_events, and then do the rest that's
needed.
empires.js
game.js
tictactoe.js