public class GameManagerDelegate extends PlayManagerDelegate
PlayManagerDelegate mechanism with game manager specific methods.| Constructor and Description |
|---|
GameManagerDelegate() |
GameManagerDelegate(GameManager gmgr)
Deprecated.
use the zero-argument constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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,
com.threerings.util.Name oldPlayer,
com.threerings.util.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.
|
didInitpublic GameManagerDelegate()
@Deprecated public GameManagerDelegate(GameManager gmgr)
public void gameWillStart()
public void gameDidStart()
public void playerWasReplaced(int pidx,
com.threerings.util.Name oldPlayer,
com.threerings.util.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)
Copyright © 2015. All rights reserved.