monrovia.server.core
Interface AppControl

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
AppControlImpl, AppControlImpl_Stub

public interface AppControl
extends java.rmi.Remote

RMI Interface for controlling Monrovia.


Method Summary
 void addPlayer(Player pPlayer)
          Add new player.
 java.lang.String getPlayerCreatureImpl()
          Get the default player creature implementing class.
 boolean hasPlayer(java.lang.String pName, boolean pInDisk)
          Returns true, if there is a player with the name specified.
 void removePlayer(java.lang.String pName, boolean pFromDisk)
          Remove a player.
 void shutdown()
          Shutdown for the server.
 

Method Detail

getPlayerCreatureImpl

public java.lang.String getPlayerCreatureImpl()
                                       throws java.rmi.RemoteException
Get the default player creature implementing class.

addPlayer

public void addPlayer(Player pPlayer)
               throws java.rmi.RemoteException,
                      StorageException
Add new player.

Parameters:
pPlayer - The new player

hasPlayer

public boolean hasPlayer(java.lang.String pName,
                         boolean pInDisk)
                  throws java.rmi.RemoteException
Returns true, if there is a player with the name specified.

Parameters:
pName - Name of the player to query
pInDisk - If true, check also the disk

removePlayer

public void removePlayer(java.lang.String pName,
                         boolean pFromDisk)
                  throws java.rmi.RemoteException,
                         StorageException
Remove a player.

Parameters:
pName - Name of the player to remove
pFromDisk - If true, the player is removed from the disk also
Throws:
StorageException - When the player does not exist

shutdown

public void shutdown()
              throws java.rmi.RemoteException
Shutdown for the server.