Methapolis
0.27
|
Public Member Functions | |
synchronized MapInfo | getLatestMap () throws RemoteException |
synchronized void | setMapInfo (MapInfo mI) |
synchronized void | storeInput (int playerID, PlayerInput input) throws RemoteException |
synchronized Map< PlayerInput, Integer > | getInput () |
void | setRemoteClient (RemoteClient client) throws RemoteException |
void | clearInput () |
byte[] | getLevel () throws RemoteException |
int | getNewID () throws RemoteException |
synchronized PlayerInfo | getPlayerInfo (int ID) throws RemoteException |
Protected Member Functions | |
RemoteDistributor (ServerMicropolis micropolis) throws RemoteException |
Private Attributes | |
transient ServerMicropolis | micropolis |
MapInfo | mapInfo |
Map< PlayerInput, Integer > | events |
String | levelName |
Static Private Attributes | |
static int | playerCount = 1 |
zentrale zugriffsklasse auf serverseite. bekommt von aussen mapobjekt reingereicht.
Definition at line 19 of file RemoteDistributor.java.
|
protected |
Definition at line 31 of file RemoteDistributor.java.
References micropolisj.network.RemoteDistributor.events, and micropolisj.network.RemoteDistributor.micropolis.
void micropolisj.network.RemoteDistributor.clearInput | ( | ) |
Definition at line 63 of file RemoteDistributor.java.
References micropolisj.network.RemoteDistributor.events.
Referenced by micropolisj.network.ServerMicropolis.animate().
synchronized Map<PlayerInput, Integer> micropolisj.network.RemoteDistributor.getInput | ( | ) |
Definition at line 54 of file RemoteDistributor.java.
References micropolisj.network.RemoteDistributor.events.
Referenced by micropolisj.network.ServerMicropolis.animate().
synchronized MapInfo micropolisj.network.RemoteDistributor.getLatestMap | ( | ) | throws RemoteException |
Implements micropolisj.network.IMicropolisServer.
Definition at line 40 of file RemoteDistributor.java.
References micropolisj.network.RemoteDistributor.mapInfo.
byte [] micropolisj.network.RemoteDistributor.getLevel | ( | ) | throws RemoteException |
Implements micropolisj.network.IMicropolisServer.
Definition at line 68 of file RemoteDistributor.java.
int micropolisj.network.RemoteDistributor.getNewID | ( | ) | throws RemoteException |
Implements micropolisj.network.IMicropolisServer.
Definition at line 76 of file RemoteDistributor.java.
References micropolisj.network.ServerMicropolis.addNewPlayer(), micropolisj.network.RemoteDistributor.micropolis, and micropolisj.network.RemoteDistributor.playerCount.
synchronized PlayerInfo micropolisj.network.RemoteDistributor.getPlayerInfo | ( | int | ID | ) | throws RemoteException |
Implements micropolisj.network.IMicropolisServer.
Definition at line 84 of file RemoteDistributor.java.
References micropolisj.network.ServerMicropolis.getPlayerInfo(), and micropolisj.network.RemoteDistributor.micropolis.
synchronized void micropolisj.network.RemoteDistributor.setMapInfo | ( | MapInfo | mI | ) |
Definition at line 45 of file RemoteDistributor.java.
References micropolisj.network.RemoteDistributor.mapInfo.
Referenced by micropolisj.network.ServerMicropolis.animate().
void micropolisj.network.RemoteDistributor.setRemoteClient | ( | RemoteClient | client | ) | throws RemoteException |
Implements micropolisj.network.IMicropolisServer.
Definition at line 59 of file RemoteDistributor.java.
synchronized void micropolisj.network.RemoteDistributor.storeInput | ( | int | playerID, |
PlayerInput | input | ||
) | throws RemoteException |
Implements micropolisj.network.IMicropolisServer.
Definition at line 50 of file RemoteDistributor.java.
References micropolisj.network.RemoteDistributor.events.
|
private |
|
private |
Definition at line 26 of file RemoteDistributor.java.
|
private |
Definition at line 23 of file RemoteDistributor.java.
Referenced by micropolisj.network.RemoteDistributor.getLatestMap(), and micropolisj.network.RemoteDistributor.setMapInfo().
|
private |
Definition at line 22 of file RemoteDistributor.java.
Referenced by micropolisj.network.RemoteDistributor.getNewID(), micropolisj.network.RemoteDistributor.getPlayerInfo(), and micropolisj.network.RemoteDistributor.RemoteDistributor().
|
staticprivate |
Definition at line 28 of file RemoteDistributor.java.
Referenced by micropolisj.network.RemoteDistributor.getNewID().