Moved player status tracking and in/out of game status from puzzles to
games. Updated the PLAYER_KNOCKED_OUT variable name to prevent some namespace contention issues. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3386 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -49,6 +49,7 @@ import com.threerings.crowd.client.PlaceControllerDelegate;
|
||||
import com.threerings.crowd.data.PlaceObject;
|
||||
|
||||
import com.threerings.parlor.game.client.GameController;
|
||||
import com.threerings.parlor.game.data.GameObject;
|
||||
|
||||
import com.threerings.puzzle.Log;
|
||||
import com.threerings.puzzle.data.Board;
|
||||
@@ -879,7 +880,7 @@ public abstract class PuzzleController extends GameController
|
||||
public void elementUpdated (ElementUpdatedEvent event) {
|
||||
String name = event.getName();
|
||||
if (name.equals(PuzzleObject.PLAYER_STATUS)) {
|
||||
if (event.getIntValue() == PuzzleObject.PLAYER_KNOCKED_OUT) {
|
||||
if (event.getIntValue() == GameObject.PLAYER_LEFT_GAME) {
|
||||
playerKnockedOut(event.getIndex());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user