Skeleton of turn-based game services.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@444 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// $Id: TurnGameObject.dobj,v 1.1 2001/10/12 00:30:10 mdb Exp $
|
||||
|
||||
package com.threerings.parlor.turn;
|
||||
|
||||
import com.threerings.parlor.game.GameObject;
|
||||
|
||||
/**
|
||||
* Extends the basic game object with support for turn-based games.
|
||||
*/
|
||||
public class TurnGameObject extends GameObject
|
||||
{
|
||||
/** The field name of the <code>turnHolder</code> field. */
|
||||
public static final String TURN_HOLDER = "turnHolder";
|
||||
|
||||
/** The username of the player who is currently taking their turn in
|
||||
* this turn-based game or null if no user currently holds the
|
||||
* turn. */
|
||||
public String turnHolder;
|
||||
|
||||
/** Requests that the <code>turnHolder</code> field be set to the
|
||||
* specified value. */
|
||||
public void setTurnHolder (String turnHolder)
|
||||
{
|
||||
requestAttributeChange(TURN_HOLDER, turnHolder);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user