universe.base
Class UniverseBase<Msg extends java.io.Serializable>
java.lang.Object
universe.base.UniverseBase<Msg>
public class UniverseBase<Msg extends java.io.Serializable>
- extends java.lang.Object
A Class representing a Universe (a collection of Worlds) of some type, and related methods
and Function Objects for handling messages and events
Field Summary |
static int |
PORT
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PORT
public static int PORT
UniverseBase
public UniverseBase(Universe<Msg> initial)
onDraw
public UniverseBase<Msg> onDraw(OnDraw<Msg> ondraw)
onTick
public UniverseBase<Msg> onTick(OnTick<Msg> ontick)
onTick
public UniverseBase<Msg> onTick(OnTick<Msg> ontick,
double time)
onNew
public UniverseBase<Msg> onNew(OnNew<Msg> onnew)
onDisconnect
public UniverseBase<Msg> onDisconnect(OnDisconnect<Msg> ondisconnect)
onMsg
public UniverseBase<Msg> onMsg(OnMsg<Msg> onmsg)
universe
public Universe<Msg> universe()