universe.base
Class UniverseBase<Msg extends java.io.Serializable>

java.lang.Object
  extended by 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
           
 
Constructor Summary
UniverseBase(Universe<Msg> initial)
           
 
Method Summary
 UniverseBase<Msg> onDisconnect(OnDisconnect<Msg> ondisconnect)
           
 UniverseBase<Msg> onDraw(OnDraw<Msg> ondraw)
           
 UniverseBase<Msg> onMsg(OnMsg<Msg> onmsg)
           
 UniverseBase<Msg> onNew(OnNew<Msg> onnew)
           
 UniverseBase<Msg> onTick(OnTick<Msg> ontick)
           
 UniverseBase<Msg> onTick(OnTick<Msg> ontick, double time)
           
 Universe<Msg> universe()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORT

public static int PORT
Constructor Detail

UniverseBase

public UniverseBase(Universe<Msg> initial)
Method Detail

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()