diff --git a/src/as/com/threerings/parlor/data/Table.as b/src/as/com/threerings/parlor/data/Table.as index 85fe1a18..a6d0dc6a 100644 --- a/src/as/com/threerings/parlor/data/Table.as +++ b/src/as/com/threerings/parlor/data/Table.as @@ -79,17 +79,17 @@ public class Table } /** - * Get the type of party game being played at this table, or - * PartyGameCodes.NOT_PARTY_GAME. + * Count the number of players currently occupying this table. */ - public function getPartyGameType () :int + public function getOccupiedCount () :int { - if (config is PartyGameConfig) { - return (config as PartyGameConfig).getPartyGameType(); - - } else { - return PartyGameCodes.NOT_PARTY_GAME; + var count :int = 0; + for (var ii :int = 0; ii < occupants.length; ii++) { + if (occupants[ii] != null) { + count++; + } } + return count; } /** @@ -116,20 +116,6 @@ public class Table return players; } - /** - * Count the number of players currently occupying this table. - */ - public function getOccupiedCount () :int - { - var count :int = 0; - for (var ii :int = 0; ii < occupants.length; ii++) { - if (occupants[ii] != null) { - count++; - } - } - return count; - } - /** * For a team game, get the team member indices of the compressed * players array returned by getPlayers(). @@ -168,6 +154,20 @@ public class Table return (PartyGameCodes.NOT_PARTY_GAME != getPartyGameType()); } + /** + * Get the type of party game being played at this table, or + * PartyGameCodes.NOT_PARTY_GAME. + */ + public function getPartyGameType () :int + { + if (config is PartyGameConfig) { + return (config as PartyGameConfig).getPartyGameType(); + + } else { + return PartyGameCodes.NOT_PARTY_GAME; + } + } + /** * Requests to seat the specified user at the specified position in * this table.