monrovia.server.core
Class AppControlImpl
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--monrovia.server.core.AppControlImpl
- All Implemented Interfaces:
- AppControl, java.rmi.Remote, java.io.Serializable
- public class AppControlImpl
- extends java.rmi.server.UnicastRemoteObject
- implements AppControl
Implementation of the AppControl remote interface.
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
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. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
AppControlImpl
public AppControlImpl(PlayerDataImpl pPlayerData)
throws java.rmi.RemoteException
getPlayerCreatureImpl
public java.lang.String getPlayerCreatureImpl()
throws java.rmi.RemoteException
- Description copied from interface:
AppControl
- Get the default player creature implementing class.
- Specified by:
getPlayerCreatureImpl
in interface AppControl
addPlayer
public void addPlayer(Player pPlayer)
throws java.rmi.RemoteException,
StorageException
- Description copied from interface:
AppControl
- Add new player.
- Specified by:
addPlayer
in interface AppControl
- Following copied from interface:
monrovia.server.core.AppControl
- Parameters:
pPlayer
- The new player
hasPlayer
public boolean hasPlayer(java.lang.String pName,
boolean pInDisk)
- Description copied from interface:
AppControl
- Returns true, if there is a player with the name specified.
- Specified by:
hasPlayer
in interface AppControl
- Following copied from interface:
monrovia.server.core.AppControl
- Parameters:
pName
- Name of the player to querypInDisk
- If true, check also the disk
removePlayer
public void removePlayer(java.lang.String pName,
boolean pFromDisk)
throws java.rmi.RemoteException,
StorageException
- Description copied from interface:
AppControl
- Remove a player.
- Specified by:
removePlayer
in interface AppControl
- Following copied from interface:
monrovia.server.core.AppControl
- Parameters:
pName
- Name of the player to removepFromDisk
- If true, the player is removed from the disk also- Throws:
StorageException
- When the player does not exist
shutdown
public void shutdown()
- Description copied from interface:
AppControl
- Shutdown for the server.
- Specified by:
shutdown
in interface AppControl