Fixed compile errors now that these classes are linked in...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@36 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -21,9 +21,11 @@
|
||||
|
||||
package com.threerings.parlor.game.data {
|
||||
|
||||
import com.threerings.util.ArrayUtil;
|
||||
import com.threerings.util.Integer;
|
||||
import com.threerings.util.langBoolean;
|
||||
import com.threerings.util.Name;
|
||||
import com.threerings.util.StringBuilder;
|
||||
|
||||
import com.threerings.io.ObjectInputStream;
|
||||
import com.threerings.io.ObjectOutputStream;
|
||||
@@ -200,7 +202,7 @@ public class GameObject extends PlaceObject
|
||||
*/
|
||||
public function getWinnerCount () :int
|
||||
{
|
||||
int count = 0;
|
||||
var count :int = 0;
|
||||
if (winners != null) {
|
||||
for (var ii :int = 0; ii < winners.length; ii++) {
|
||||
if (winners[ii]) {
|
||||
@@ -236,7 +238,7 @@ public class GameObject extends PlaceObject
|
||||
*/
|
||||
public function getPartyGameType () :int
|
||||
{
|
||||
return PartyGameConfig.NOT_PARTY_GAME;
|
||||
return PartyGameCodes.NOT_PARTY_GAME;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.threerings.parlor.game.data {
|
||||
|
||||
public class PartyGameCodes
|
||||
{
|
||||
/** Party game constant indicating that this game, while it does
|
||||
* implement PartyGameConfig, is not currently being played in party
|
||||
* mode. */
|
||||
public static const NOT_PARTY_GAME :int = 0;
|
||||
|
||||
/** Party game constant indicating that we're in a party game in which
|
||||
* players must sit at an available seat to play, otherwise they're
|
||||
* an observer. */
|
||||
public static const SEATED_PARTY_GAME :int = 1;
|
||||
|
||||
/** Party game constant indicating that everyone in the game place is
|
||||
* a "player", meaning that they do not need to claim a seat to play. */
|
||||
public static const FREE_FOR_ALL_PARTY_GAME :int = 2;
|
||||
}
|
||||
}
|
||||
@@ -29,20 +29,6 @@ package com.threerings.parlor.game.data {
|
||||
*/
|
||||
public interface PartyGameConfig
|
||||
{
|
||||
/** Party game constant indicating that this game, while it does
|
||||
* implement PartyGameConfig, is not currently being played in party
|
||||
* mode. */
|
||||
public static const NOT_PARTY_GAME :int = 0;
|
||||
|
||||
/** Party game constant indicating that we're in a party game in which
|
||||
* players must sit at an available seat to play, otherwise they're
|
||||
* an observer. */
|
||||
public static const SEATED_PARTY_GAME :int = 1;
|
||||
|
||||
/** Party game constant indicating that everyone in the game place is
|
||||
* a "player", meaning that they do not need to claim a seat to play. */
|
||||
public static const FREE_FOR_ALL_PARTY_GAME :int = 2;
|
||||
|
||||
/**
|
||||
* Get the type of party game being played.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user