Activity diagram of Yampa reactimate
This blog post was originally written back in 2010-07-10
download: diagram (.svg), fonts (cmr10.ttf, cmtt10.ttf)
Collect the input events (
initandinput) in an IO task.Pass them to
process(which is purely functional) and…coreis aYampa.dpSwitchwhich consists ofroute, the object listIL sfandkillAndSpawn.routefirst reasons about all previous object states to produce logical events (collisions etc.) and…secondly bundles the input and logical events to the objects (
IL (ObjEvents, sf)).Run all the signal functions which in turn may produce kill or spawn requests of new objects…
which are applied in
killAndSpawnto possibly get a new object collection (IL Object) which are then fed-back intocore.Render all objects states and loop.