|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IGameLoader
A game loader is responsible for telling the framework what types of players are available, for creating players, and starting the game. The name is somewhat misleading since it doesnt actually load the game data, merely performs the game specific steps for starting the game and meta data needed by the engine.
| Field Summary | |
|---|---|
static java.lang.String |
CLIENT_PLAYER_TYPE
|
| Method Summary | |
|---|---|
java.util.Set<IGamePlayer> |
createPlayers(java.util.Map players)
Create the players. |
java.lang.Class<? extends IChannelSubscribor> |
getDisplayType()
Get the type of the display |
IPBEMMessenger[] |
getPBEMMessengers()
Get PBEM messengers for Turn Summary notification |
java.lang.Class<? extends IRemote> |
getRemotePlayerType()
Get the type of the GamePlayer. |
java.lang.String[] |
getServerPlayerTypes()
Return an array of player types that can play on the server. |
IUnitFactory |
getUnitFactory()
A game may use a subclass of Unit to allow associating data with a particular unit. |
void |
shutDown()
|
void |
startGame(IGame game,
java.util.Set<IGamePlayer> players)
The game is about to start. |
| Field Detail |
|---|
static final java.lang.String CLIENT_PLAYER_TYPE
| Method Detail |
|---|
java.lang.String[] getServerPlayerTypes()
java.util.Set<IGamePlayer> createPlayers(java.util.Map players)
void startGame(IGame game,
java.util.Set<IGamePlayer> players)
throws java.lang.Exception
java.lang.ExceptionIPBEMMessenger[] getPBEMMessengers()
java.lang.Class<? extends IChannelSubscribor> getDisplayType()
java.lang.Class<? extends IRemote> getRemotePlayerType()
The type must extend IRemote, and is to be used by an IRemoteManager to allow a player to be contacted remotately
IRemoteMessengervoid shutDown()
IUnitFactory getUnitFactory()
Games that do not want to subclasses of units should simply return a DefaultUnitFactory.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||