com.threerings.parlor.data
Class TableConfig
java.lang.Object
com.threerings.io.SimpleStreamableObject
com.threerings.parlor.data.TableConfig
- All Implemented Interfaces:
- Streamable
public class TableConfig
- extends SimpleStreamableObject
Table configuration parameters for a game that is to be matchmade using the table services.
|
Field Summary |
int |
desiredPlayerCount
The total number of players that are desired for the table. |
int |
minimumPlayerCount
The minimum number of players needed overall (or per-team if a team-based game) for the
game to start at the creator's discretion. |
boolean |
privateTable
Whether the table is "private". |
int[][] |
teamMemberIndices
If non-null, indicates that this is a team-based game and contains the team assignments for
each player. |
desiredPlayerCount
public int desiredPlayerCount
- The total number of players that are desired for the table. For team games, this should be
set to the total number of players overall, as teams may be unequal.
minimumPlayerCount
public int minimumPlayerCount
- The minimum number of players needed overall (or per-team if a team-based game) for the
game to start at the creator's discretion.
teamMemberIndices
public int[][] teamMemberIndices
- If non-null, indicates that this is a team-based game and contains the team assignments for
each player. For example, a game with three players in two teams- players 0 and 2 versus
player 1- would have { {0, 2}, {1} };
privateTable
public boolean privateTable
- Whether the table is "private".
TableConfig
public TableConfig()