new Turn(id, order, seqId, player)
Represents a turn in a turn based game.
Parameters:
Name | Type | Description |
---|---|---|
id |
Number | The turn's id. |
order |
Number | The turn's player order. |
seqId |
Number | The turn's sequence id. |
player |
Entity | The player associated with the turn. |
Members
-
actions :Array
-
The array of Action executed in this turn.
Type:
- Array
-
id :Number
-
The turn's unique ID starting from 0.
Type:
- Number
-
order :Number
-
The turn's player order, starting from 0, ends at number of players - 1.
Type:
- Number
-
player :Entity
-
The turn's player, who is owner of the turn.
Type:
-
seqId :Number
-
The turn's sequence ID, starting from 0, increases by 1 when player order resets to 0.
Type:
- Number