board-game
Version:
an online board game engine
31 lines (29 loc) • 576 B
JavaScript
/**
* Created by wm123 on 2017/6/28.
*/
const Dispatcher = require('./dispatcher');
class Board extends Dispatcher {
constructor(game) {
super();
this.game = game;
}
isWin(groupIndex) {
return false;
}
get isOver() {
return this.game.isOver;
}
get data() {
return { };
}
get groups() {
return this.game.groups;
}
get room() {
return this.game.room;
}
get settings() {
return this.room.settings;
}
}
module.exports = Board;