|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.crowd.server.PlaceManagerDelegate
com.threerings.parlor.server.PlayManagerDelegate
com.threerings.parlor.game.server.GameManagerDelegate
public class GameManagerDelegate
Extends the PlayManagerDelegate mechanism with game manager specific methods.
| Field Summary |
|---|
| Fields inherited from class com.threerings.parlor.server.PlayManagerDelegate |
|---|
_gmgr |
| Fields inherited from class com.threerings.crowd.server.PlaceManagerDelegate |
|---|
_invmgr, _omgr, _plmgr |
| Constructor Summary | |
|---|---|
GameManagerDelegate()
|
|
GameManagerDelegate(GameManager gmgr)
Deprecated. use the zero-argument constructor. |
|
| Method Summary | |
|---|---|
void |
gameDidEnd()
Called by the game manager after the game ended. |
void |
gameDidStart()
Called by the game manager after the game was started. |
void |
gameWillEnd()
Called by the game manager when the game is about to end. |
void |
gameWillReset()
Called when the game is about to reset, but before any other clearing out of game data has taken place. |
void |
gameWillStart()
Called by the game manager when the game is about to start. |
void |
playerWasReplaced(int pidx,
Name oldPlayer,
Name newPlayer)
Called when a player in the game has been replaced by a call to GameManager.replacePlayer(int, com.threerings.util.Name). |
void |
setAI(int pidx,
GameAI ai)
Called when the specified player has been set as an AI with the supplied AI configuration. |
void |
tickAI(int pidx,
GameAI ai)
Called by the manager when we should do some AI. |
| Methods inherited from class com.threerings.parlor.server.PlayManagerDelegate |
|---|
didInit, isAgent, isPlayer, verifyIsPlayer, verifyIsPlayerOrAgent, verifyWritePermission |
| Methods inherited from class com.threerings.crowd.server.PlaceManagerDelegate |
|---|
addDispatcher, addProvider, bodyEntered, bodyLeft, bodyUpdated, didShutdown, didStartup, init, placeBecameEmpty, where |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GameManagerDelegate()
@Deprecated public GameManagerDelegate(GameManager gmgr)
| Method Detail |
|---|
public void gameWillStart()
public void gameDidStart()
public void playerWasReplaced(int pidx,
Name oldPlayer,
Name newPlayer)
GameManager.replacePlayer(int, com.threerings.util.Name).
public void tickAI(int pidx,
GameAI ai)
pidx - the player index to fake some gameplay for.ai - a record indicating the AI's configuration.public void gameWillEnd()
public void gameDidEnd()
public void gameWillReset()
public void setAI(int pidx,
GameAI ai)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||