Files
narya/src/java/com/threerings/parlor/game/GameManagerDelegate.java
T
Ray Greenwell 4b0b462c3a Tick for each AI, pass the tick to the delegates.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1283 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-19 21:16:42 +00:00

72 lines
1.6 KiB
Java

//
// $Id: GameManagerDelegate.java,v 1.3 2002/04/19 21:16:42 ray Exp $
package com.threerings.parlor.game;
import com.threerings.crowd.server.PlaceManagerDelegate;
/**
* Extends the {@link PlaceManagerDelegate} mechanism with game manager
* specific methods.
*/
public class GameManagerDelegate extends PlaceManagerDelegate
{
/**
* Provides the delegate with a reference to the game manager for
* which it is delegating.
*/
public GameManagerDelegate (GameManager gmgr)
{
super(gmgr);
}
/**
* Called by the game manager when the game is about to start.
*/
public void gameWillStart ()
{
}
/**
* Called by the game manager after the game was started.
*/
public void gameDidStart ()
{
}
/**
* Called by the manager when we should do some AI.
*
* @param pidx the player index to fake some gameplay for.
* @param skill the base skill level of the AI (0 - 100 inclusive).
*/
public void tickAI (int pidx, byte skill)
{
}
/**
* Called by the game manager after the game ended.
*/
public void gameDidEnd ()
{
}
/**
* Called when the game is about to reset, but before any other
* clearing out of game data has taken place. Derived classes should
* override this if they need to perform some pre-reset activities.
*/
public void gameWillReset ()
{
}
/**
* Called after the game has been reset. Derived classes can override
* this to put whatever wheels they might need into motion now that
* the game is reset.
*/
public void gameDidReset ()
{
}
}