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 (
init
andinput
) in an IO task.Pass them to
process
(which is purely functional) and…core
is aYampa.dpSwitch
which consists ofroute
, the object listIL sf
andkillAndSpawn
.route
first 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
killAndSpawn
to possibly get a new object collection (IL Object
) which are then fed-back intocore
.Render all objects states and loop.