Overwrote with generated versions (which are the same but in different orders).

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@94 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2006-10-05 00:32:20 +00:00
parent 6f9136d109
commit b96d28cd1a
3 changed files with 70 additions and 64 deletions
+22 -22
View File
@@ -79,17 +79,17 @@ public class Table
}
/**
* Count the number of players currently occupying this table.
* Get the type of party game being played at this table, or
* PartyGameCodes.NOT_PARTY_GAME.
*/
public function getOccupiedCount () :int
public function getPartyGameType () :int
{
var count :int = 0;
for (var ii :int = 0; ii < occupants.length; ii++) {
if (occupants[ii] != null) {
count++;
}
if (config is PartyGameConfig) {
return (config as PartyGameConfig).getPartyGameType();
} else {
return PartyGameCodes.NOT_PARTY_GAME;
}
return count;
}
/**
@@ -116,6 +116,20 @@ 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().
@@ -154,20 +168,6 @@ 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.