|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfeud.testgame.view.ClientObjectManager
A manager class for handling client objects. This manager holds references to all client objects that this client knows of (event remote ones).
Constructor Summary | |
ClientObjectManager()
Creates a new manager. |
Method Summary | |
ClientObject |
getClientObject(int objID,
int clientID)
Gets a client object that has been created on a remote client with a given id. |
java.util.Collection |
getClientObjects()
Returns all client objects that this manager knows of. |
LocalObject |
getLocalObjectToView(ClientObject co)
Returns the underlying data model of a view object. |
ClientObject |
getOrCreateClientObject(LocalObject lo,
com.threed.jpct.World world,
LocalBulletManager bulMan)
Returns the view object for a given local object. |
void |
remove(ClientObject co,
com.threed.jpct.World world)
Removes a single object from the manager and the world. |
void |
removeAll(com.threed.jpct.World world)
Removes all objects from the manager and the world. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClientObjectManager()
Method Detail |
public java.util.Collection getClientObjects()
public LocalObject getLocalObjectToView(ClientObject co)
co
- the view object
public ClientObject getClientObject(int objID, int clientID)
objID
- the id of the objectclientID
- the id of the client
public ClientObject getOrCreateClientObject(LocalObject lo, com.threed.jpct.World world, LocalBulletManager bulMan)
lo
- the local object on which the view is basedworld
- the current world (needed, because the manager has to add the new view object to it)bulMan
- the manager for the local bullets (because collisions of local bullets with this object has be determined)
public void removeAll(com.threed.jpct.World world)
world
- the current worldpublic void remove(ClientObject co, com.threed.jpct.World world)
co
- the object to removeworld
- the world
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |