Source: TurnSystem.js

Source: TurnSystem.js

var ActionSystem = require('./ActionSystem');

/**
 * Represents a System for a turn based game.
 * TurnSystem manages TurnEngine's Entity by its own method.
 * @constructor
 * @extends ActionSystem
 * @see Entity
 */
function TurnSystem() {
  ActionSystem.call(this);
}

TurnSystem.prototype = Object.create(ActionSystem.prototype);
TurnSystem.prototype.constructor = TurnSystem;

/**
 * Called when the game starts.
 * @param turn {Turn} - The current Turn.
 */
TurnSystem.prototype.init = function(turn) {
  
}

/**
 * Called when the turn changes.
 * @param turn {Turn} - The current Turn.
 */
TurnSystem.prototype.turn = function(turn) {
  
}

/**
 * Called when the sequence id changes.
 * @param turn {Turn} - The current Turn.
 */
TurnSystem.prototype.sequence = function(turn) {
  
}


if(typeof module !== 'undefined') {
  module.exports = TurnSystem;
}