|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfeud.testgame.model.ServerObjectManager
A manager class that handles local objects on the server identified by a combination of client- and objectID.
Constructor Summary | |
ServerObjectManager()
Create a new manager. |
Method Summary | |
void |
fill(ExtendedDataContainer dc)
Fills a data container with data from the all local objects on the server. |
LocalObjectList |
getLocalObjectList(ClientInfo ci)
Returns a list of all local objects for a specific client. |
LocalObject |
getLocalObjectToIDs(int objID,
int clientID)
Gets a local object stored on the server identified by the clientID and the objectID. |
void |
remove(ClientInfo ci)
Removes a client completely from the list, i.e. |
void |
removeObject(LocalObject lo,
ClientInfo ci)
Removes an object from the server's list, i.e. it doesn't exist on the client any longer. |
void |
setOrUpdate(ExtendedDataContainer ec)
Takes the input transmitted by a client and creates or updates the local instances that represent the objects on the client. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServerObjectManager()
Method Detail |
public LocalObject getLocalObjectToIDs(int objID, int clientID)
objID
- the objectIDclientID
- the clientID
public void fill(ExtendedDataContainer dc)
dc
- the container to fillpublic void setOrUpdate(ExtendedDataContainer ec)
ec
- the container with the client's objectspublic void removeObject(LocalObject lo, ClientInfo ci)
lo
- the object to removeci
- the client infopublic LocalObjectList getLocalObjectList(ClientInfo ci)
ci
- the client for the client in question
public void remove(ClientInfo ci)
ci
- the client
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |