Class: TurnSystem

Class: TurnSystem

TurnSystem

new TurnSystem()

Represents a System for a turn based game. TurnSystem manages TurnEngine's Entity by its own method.

Source:
See:

Extends

Methods

action(turn, action)

Called when the action runs.

Parameters:
Name Type Description
turn Turn

The current Turn if available.

action Action

The action that has run.

Inherited From:
Source:

add(engine)

Called when the System is added to the Engine.

Parameters:
Name Type Description
engine Engine

The Engine added to.

Inherited From:
Source:

init(turn)

Called when the game starts.

Parameters:
Name Type Description
turn Turn

The current Turn.

Source:

preAction(turn, action)

Called when before action runs.

Parameters:
Name Type Description
turn Turn

The current Turn if available.

action Action

The action about to run.

Inherited From:
Source:

remove(engine)

Called when the System is removed from the Engine.

Parameters:
Name Type Description
engine Engine

The Engine removed from.

Inherited From:
Source:

sendAction(turn, action)

Called when the new action is required to sent to the server.

Parameters:
Name Type Description
turn Turn

The current Turn if available.

action Action

The action that has run.

Inherited From:
Source:

sequence(turn)

Called when the sequence id changes.

Parameters:
Name Type Description
turn Turn

The current Turn.

Source:

turn(turn)

Called when the turn changes.

Parameters:
Name Type Description
turn Turn

The current Turn.

Source:

update()

Called when the Engine#update is called.

Inherited From:
Source: