I justed checked this in in the other order, but somehow it insists on coming

out in this order now. This should not be non-deterministic. Reflection should
give me the methods in the order they are declared in the Java class so I don't
know what the major malfunction is here, but if it keeps up I'm going to
fucking alphabetize them and be done with it.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@95 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2006-10-05 00:37:35 +00:00
parent b96d28cd1a
commit a8fa272219
+22 -22
View File
@@ -79,18 +79,18 @@ 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;
}
/**
* Once a table is ready to play (see {@link #mayBeStarted} and {@link
@@ -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.