Packages

p

doodle

reactor

package reactor

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. final case class BasicReactor[A](initial: A, onTickHandler: (A) ⇒ A = (a: A) => a, tickRate: FiniteDuration = FiniteDuration(100, MILLISECONDS), renderHandler: (A) ⇒ Image = (_: A) => Image.empty, stopHandler: (A) ⇒ Boolean = (_: A) => false) extends Reactor[A] with Product with Serializable

    A Reactor that has reasonable defaults and a simple builder style for creating more complicated behaviour.

  2. trait Reactor[A] extends AnyRef

    A Reactor is a simple way to express an interactive program.

    A Reactor is a simple way to express an interactive program. It allows us to write programs in terms of some initial state and transformations of that state in response to inputs and clock ticks. This is the basic interface that does not handle any user input, only clock ticks.

    It is based on * the same abstraction in Pyret.

Value Members

  1. object BasicReactor extends Serializable

Ungrouped