edu.ou.mlfw.gui
Class ClientShadowSource
java.lang.Object
edu.ou.mlfw.gui.ClientShadowSource
- All Implemented Interfaces:
- java.lang.Iterable<Shadow2D>
public class ClientShadowSource
- extends java.lang.Object
- implements java.lang.Iterable<Shadow2D>
TODO: Temporary class that prevents having to change the client api for
working with shadows. This should eventually be replaced by simply having the
client track their own shadows, then providing an iterable that traverses the
clients directly.
This class adapts a list of clients to act as an iterable over the shadows
provided by those clients, handling the persistence of shadows from timestep
to timestep (this was previously handled directly by the gui component).
- Author:
- Jason
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientShadowSource
public ClientShadowSource()
update
public void update(java.lang.Iterable<Client> clients)
iterator
public java.util.Iterator<Shadow2D> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<Shadow2D>